From 54b54aabd668c8b7bb4d83dd4d2bb8b2e01d7a5c Mon Sep 17 00:00:00 2001 From: stephena Date: Mon, 15 Dec 2008 00:20:11 +0000 Subject: [PATCH] Switched a bit of code around, because it causes a problem in Vista. I'm really beginning to tire of the OpenGL stuff right now, since it seems everything works differently between Linux, OSX and Windows. And surprise, surprise, there never seems to be any problems in Linux ... git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1564 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba --- stella/src/common/FrameBufferGL.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/stella/src/common/FrameBufferGL.cxx b/stella/src/common/FrameBufferGL.cxx index 79fe44b6e..09c5fd297 100644 --- a/stella/src/common/FrameBufferGL.cxx +++ b/stella/src/common/FrameBufferGL.cxx @@ -13,7 +13,7 @@ // See the file "license" for information on usage and redistribution of // this file, and for a DISCLAIMER OF ALL WARRANTIES. // -// $Id: FrameBufferGL.cxx,v 1.116 2008-12-14 21:51:11 stephena Exp $ +// $Id: FrameBufferGL.cxx,v 1.117 2008-12-15 00:20:11 stephena Exp $ //============================================================================ #ifdef DISPLAY_OPENGL @@ -361,6 +361,10 @@ cerr << "dimensions: " << endl << " imageh = " << mode.image_h << endl << endl; + // Any previously allocated textures currently in use by various UI items + // need to be refreshed as well (only seems to be required for OSX) + reloadSurfaces(); + // The framebuffer only takes responsibility for TIA surfaces // Other surfaces (such as the ones used for dialogs) are allocated // in the Dialog class @@ -371,10 +375,6 @@ cerr << "dimensions: " << endl mode.image_w, mode.image_h); } - // Any previously allocated textures currently in use by various UI items - // need to be refreshed as well (only seems to be required for OSX) - reloadSurfaces(); - // Make sure any old parts of the screen are erased p_glClear(GL_COLOR_BUFFER_BIT); SDL_GL_SwapBuffers();