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();
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();
ImGui::Render();