From 7b4f6ba2555db3cf5a9376197dc262fe0dd56347 Mon Sep 17 00:00:00 2001 From: hrydgard Date: Tue, 16 Dec 2008 00:44:50 +0000 Subject: [PATCH] remove annoying error message when state saving git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1554 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_VideoOGL/Src/main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/Plugins/Plugin_VideoOGL/Src/main.cpp b/Source/Plugins/Plugin_VideoOGL/Src/main.cpp index 75ee1fc176..af9d3c9b62 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/main.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/main.cpp @@ -240,8 +240,10 @@ void Video_DoState(unsigned char **ptr, int mode) { //#elif defined(HAVE_X11) && HAVE_X11 // glXMakeCurrent(GLWin.dpy, GLWin.win, GLWin.ctx); //#endif - OpenGL_MakeCurrent(); - +#ifndef _WIN32 + // WHY is this here?? + OpenGL_MakeCurrent(); +#endif // Clear all caches that touch RAM TextureMngr::Invalidate(); // DisplayListManager::Invalidate();