mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-23 06:15:38 +00:00
GPU/HW: Don't display a deleted texture in D3D/OpenGL when updating settings
This commit is contained in:
parent
af6978bcb1
commit
d733553425
|
@ -122,7 +122,10 @@ void GPU_HW_D3D11::UpdateSettings()
|
||||||
UpdateHWSettings(&needs_new_framebuffer, &needs_new_shaders);
|
UpdateHWSettings(&needs_new_framebuffer, &needs_new_shaders);
|
||||||
|
|
||||||
if (needs_new_framebuffer)
|
if (needs_new_framebuffer)
|
||||||
|
{
|
||||||
|
m_host_display->ClearDisplayTexture();
|
||||||
CreateFramebuffer();
|
CreateFramebuffer();
|
||||||
|
}
|
||||||
if (needs_new_shaders)
|
if (needs_new_shaders)
|
||||||
CompileShaders();
|
CompileShaders();
|
||||||
|
|
||||||
|
|
|
@ -126,7 +126,10 @@ void GPU_HW_OpenGL::UpdateSettings()
|
||||||
UpdateHWSettings(&framebuffer_changed, &shaders_changed);
|
UpdateHWSettings(&framebuffer_changed, &shaders_changed);
|
||||||
|
|
||||||
if (framebuffer_changed)
|
if (framebuffer_changed)
|
||||||
|
{
|
||||||
|
m_host_display->ClearDisplayTexture();
|
||||||
CreateFramebuffer();
|
CreateFramebuffer();
|
||||||
|
}
|
||||||
if (shaders_changed)
|
if (shaders_changed)
|
||||||
CompilePrograms();
|
CompilePrograms();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue