diff --git a/Source/Plugins/Plugin_VideoOGL/Src/GLInit.cpp b/Source/Plugins/Plugin_VideoOGL/Src/GLInit.cpp index 3b2dad26f2..c4603d6d3c 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/GLInit.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/GLInit.cpp @@ -484,7 +484,10 @@ bool OpenGL_MakeCurrent() void OpenGL_Update() { #if USE_SDL - //TODO + SDL_Surface *surface = SDL_GetVideoSurface(); + if (!surface) return; + nBackbufferWidth = surface->w; + nBackbufferHeight = surface->h; #elif defined(_WIN32) if (!EmuWindow::GetParentWnd()) return;