From a6e2a433c44492f72c48a3e77bdc5ff2a354e055 Mon Sep 17 00:00:00 2001 From: Muzychenko Andrey <33288308+k4zmu2a@users.noreply.github.com> Date: Sun, 26 Dec 2021 13:25:25 +0300 Subject: [PATCH] Added secondary clear hack. Issue #88 --- SpaceCadetPinball/winmain.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SpaceCadetPinball/winmain.cpp b/SpaceCadetPinball/winmain.cpp index 8650159..c728af9 100644 --- a/SpaceCadetPinball/winmain.cpp +++ b/SpaceCadetPinball/winmain.cpp @@ -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();