mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-09 13:14:02 +02:00
Fix flickering in fullscreen
This commit is contained in:
parent
c87df8e704
commit
2521e7bac9
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user