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

pull/738/head
Connor McLaughlin 5 years ago
parent af6978bcb1
commit d733553425

@ -122,7 +122,10 @@ void GPU_HW_D3D11::UpdateSettings()
UpdateHWSettings(&needs_new_framebuffer, &needs_new_shaders);
if (needs_new_framebuffer)
{
m_host_display->ClearDisplayTexture();
CreateFramebuffer();
}
if (needs_new_shaders)
CompileShaders();

@ -126,7 +126,10 @@ void GPU_HW_OpenGL::UpdateSettings()
UpdateHWSettings(&framebuffer_changed, &shaders_changed);
if (framebuffer_changed)
{
m_host_display->ClearDisplayTexture();
CreateFramebuffer();
}
if (shaders_changed)
CompilePrograms();

Loading…
Cancel
Save