Browse Source

Fix flickering in fullscreen

Andrii Danylchenko 3 years ago
parent
commit
2521e7bac9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      client/gui/CGuiHandler.cpp

+ 1 - 0
client/gui/CGuiHandler.cpp

@@ -466,6 +466,7 @@ void CGuiHandler::renderFrame()
 
 		SDL_UpdateTexture(screenTexture, nullptr, screen->pixels, screen->pitch);
 
+		SDL_RenderClear(mainRenderer);
 		SDL_RenderCopy(mainRenderer, screenTexture, nullptr, nullptr);
 
 		CCS->curh->render();