diff --git a/stella/src/common/FrameBufferGL.cxx b/stella/src/common/FrameBufferGL.cxx index 4d3e49ff5..72a775c3c 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.3 2004-06-23 00:15:32 stephena Exp $ +// $Id: FrameBufferGL.cxx,v 1.4 2004-06-23 00:33:37 stephena Exp $ //============================================================================ #include @@ -103,6 +103,12 @@ bool FrameBufferGL::createScreen() createTextures(); #endif + // Make sure any old parts of the screen are erased + // Do it for both buffers! + glClear(GL_COLOR_BUFFER_BIT); + SDL_GL_SwapBuffers(); + glClear(GL_COLOR_BUFFER_BIT); + theRedrawEntireFrameIndicator = true; return true; } @@ -482,12 +488,6 @@ bool FrameBufferGL::createTextures() glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glEnable(GL_TEXTURE_2D); - // Make sure any old parts of the screen are erased - // Do it for both buffers! - glClear(GL_COLOR_BUFFER_BIT); - SDL_GL_SwapBuffers(); - glClear(GL_COLOR_BUFFER_BIT); - return true; }