mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-15 20:03:15 +02:00
Fix flickering in fullscreen
This commit is contained in:
@@ -466,6 +466,7 @@ void CGuiHandler::renderFrame()
|
|||||||
|
|
||||||
SDL_UpdateTexture(screenTexture, nullptr, screen->pixels, screen->pitch);
|
SDL_UpdateTexture(screenTexture, nullptr, screen->pixels, screen->pitch);
|
||||||
|
|
||||||
|
SDL_RenderClear(mainRenderer);
|
||||||
SDL_RenderCopy(mainRenderer, screenTexture, nullptr, nullptr);
|
SDL_RenderCopy(mainRenderer, screenTexture, nullptr, nullptr);
|
||||||
|
|
||||||
CCS->curh->render();
|
CCS->curh->render();
|
||||||
|
Reference in New Issue
Block a user