Fix: [OpenGL] Main loop expects to start with the video buffer unmapped. (#9100)

This commit is contained in:
Michael Lutz
2021-04-25 00:43:38 +02:00
committed by GitHub
parent fbc232569c
commit f4d5c8d99e
3 changed files with 5 additions and 0 deletions

View File

@@ -1311,6 +1311,8 @@ const char *VideoDriver_Win32OpenGL::Start(const StringList &param)
_cur_resolution = old_res;
return "Can't get pointer to screen buffer";
}
/* Main loop expects to start with the buffer unmapped. */
this->ReleaseVideoPointer();
MarkWholeScreenDirty();