Make sure to invalidate texture memory when going fullscreen otherwise it might not be syned correctly.

This commit is contained in:
Ian Curtis 2022-12-25 00:32:01 +00:00
parent 11c01a349f
commit 69a458ecf7

View file

@ -1280,6 +1280,8 @@ int Supermodel(const Game &game, ROMSet *rom_set, IEmulator *Model3, CInputs *In
goto QuitError; goto QuitError;
Model3->AttachRenderers(Render2D,Render3D); Model3->AttachRenderers(Render2D,Render3D);
Render3D->UploadTextures(0, 0, 0, 2048, 2048); // sync texture memory
Inputs->GetInputSystem()->SetMouseVisibility(!s_runtime_config["FullScreen"].ValueAs<bool>()); Inputs->GetInputSystem()->SetMouseVisibility(!s_runtime_config["FullScreen"].ValueAs<bool>());
} }
else if (Inputs->uiSaveState->Pressed()) else if (Inputs->uiSaveState->Pressed())