mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-05-06 10:15:41 -04: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);
|
||||
|
||||
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…
x
Reference in New Issue
Block a user