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
This commit is contained in:
stephena 2008-12-15 00:20:11 +00:00
parent f997bfb7f2
commit 54b54aabd6
1 changed files with 5 additions and 5 deletions

View File

@ -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();