diff --git a/Source/SysGL/Graphics/GraphicsContextGL.cpp b/Source/SysGL/Graphics/GraphicsContextGL.cpp index 1ef29860..c72d8275 100644 --- a/Source/SysGL/Graphics/GraphicsContextGL.cpp +++ b/Source/SysGL/Graphics/GraphicsContextGL.cpp @@ -212,8 +212,11 @@ void GraphicsContextGL::EndFrame() void GraphicsContextGL::UpdateFrame( bool wait_for_vbl ) { glBindFramebuffer(GL_FRAMEBUFFER, 0); - SDL_GL_SwapWindow(gWindow); + if (gSdlRenderer == nullptr) { + SDL_GL_SwapWindow(gWindow); + } + // if( gCleanSceneEnabled ) //TODO: This should be optional // { // ClearColBuffer( c32(0xff000000) ); // ToDo : Use gFillColor instead?