1
0
Fork 0
mirror of https://github.com/k4zmu2a/SpaceCadetPinball.git synced 2024-12-18 10:37:53 +01:00

Added secondary clear hack.

Issue #88
This commit is contained in:
Muzychenko Andrey 2021-12-26 13:25:25 +03:00
parent ad4a17c2f2
commit a6e2a433c4

View file

@ -253,6 +253,9 @@ int winmain::WinMain(LPCSTR lpCmdLine)
RenderUi(); RenderUi();
SDL_RenderClear(renderer); SDL_RenderClear(renderer);
// Alternative clear hack, clear might fail on some systems
// Todo: remove original clear, if save for all platforms
SDL_RenderFillRect(renderer, nullptr);
render::PresentVScreen(); render::PresentVScreen();
ImGui::Render(); ImGui::Render();