Fix #8808: [OSX, OpenGL] Crash on switching blitters due to double-mapping the video buffer.

This commit is contained in:
Michael Lutz
2021-03-08 15:20:49 +01:00
parent ae1f7bd695
commit 25656a10cb
3 changed files with 5 additions and 5 deletions

View File

@@ -213,7 +213,7 @@ bool VideoDriver_Cocoa::ToggleFullscreen(bool full_screen)
*/
bool VideoDriver_Cocoa::AfterBlitterChange()
{
this->ChangeResolution(_cur_resolution.width, _cur_resolution.height);
this->AllocateBackingStore(true);
return true;
}
@@ -224,7 +224,7 @@ void VideoDriver_Cocoa::EditBoxLostFocus()
{
[ [ this->cocoaview inputContext ] discardMarkedText ];
/* Clear any marked string from the current edit box. */
HandleTextInput(NULL, true);
HandleTextInput(nullptr, true);
}
/**