From 69a458ecf79b7b91de821de0435d7ac0cd8a7ae1 Mon Sep 17 00:00:00 2001 From: Ian Curtis Date: Sun, 25 Dec 2022 00:32:01 +0000 Subject: [PATCH] Make sure to invalidate texture memory when going fullscreen otherwise it might not be syned correctly. --- Src/OSD/SDL/Main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Src/OSD/SDL/Main.cpp b/Src/OSD/SDL/Main.cpp index 239ecd8..5722b32 100644 --- a/Src/OSD/SDL/Main.cpp +++ b/Src/OSD/SDL/Main.cpp @@ -1280,6 +1280,8 @@ int Supermodel(const Game &game, ROMSet *rom_set, IEmulator *Model3, CInputs *In goto QuitError; Model3->AttachRenderers(Render2D,Render3D); + Render3D->UploadTextures(0, 0, 0, 2048, 2048); // sync texture memory + Inputs->GetInputSystem()->SetMouseVisibility(!s_runtime_config["FullScreen"].ValueAs()); } else if (Inputs->uiSaveState->Pressed())