Skip to content

Commit

Permalink
ui fix from master
Browse files Browse the repository at this point in the history
  • Loading branch information
z2442 committed Jun 27, 2024
1 parent a261fbf commit 9d85bb7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Source/SysGL/Graphics/GraphicsContextGL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit 9d85bb7

Please sign in to comment.