GPU/HW: Don't display a deleted texture in D3D/OpenGL when updating settings

This commit is contained in:
Connor McLaughlin 2020-08-11 04:03:11 +10:00
parent af6978bcb1
commit d733553425
2 changed files with 6 additions and 0 deletions

View file

@ -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();

View file

@ -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();