File diff r25013:4c02a1340d93 → r25014:e1f1bf3a062e
src/video/cocoa/cocoa_ogl.mm
Show inline comments
 
@@ -211,12 +211,14 @@ const char *VideoDriver_CocoaOpenGL::Sta
 
	if (fullscreen) this->ToggleFullscreen(fullscreen);
 

	
 
	this->GameSizeChanged();
 
	this->UpdateVideoModes();
 
	MarkWholeScreenDirty();
 

	
 
	this->is_game_threaded = !GetDriverParamBool(param, "no_threads") && !GetDriverParamBool(param, "no_thread");
 

	
 
	return nullptr;
 

	
 
}
 

	
 
void VideoDriver_CocoaOpenGL::Stop()
 
{
 
@@ -224,12 +226,17 @@ void VideoDriver_CocoaOpenGL::Stop()
 

	
 
	CGLSetCurrentContext(this->gl_context);
 
	OpenGLBackend::Destroy();
 
	CGLReleaseContext(this->gl_context);
 
}
 

	
 
void VideoDriver_CocoaOpenGL::PopulateSystemSprites()
 
{
 
	OpenGLBackend::Get()->PopulateCursorCache();
 
}
 

	
 
void VideoDriver_CocoaOpenGL::ClearSystemSprites()
 
{
 
	CGLSetCurrentContext(this->gl_context);
 
	OpenGLBackend::Get()->ClearCursorCache();
 
}