From afced1fa98742a34e5cdb4fe309e6d48f90f981e Mon Sep 17 00:00:00 2001 From: Maarten ter Huurne Date: Tue, 26 Aug 2008 01:21:25 +0000 Subject: [PATCH] Implemented OpenGL_Update() for SDL. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@319 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_VideoOGL/Src/GLInit.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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;