mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-18 21:15:46 -04:00
GPU/HW: Make settings update slightly safer
This commit is contained in:
@ -133,7 +133,13 @@ void GPU_HW_OpenGL::UpdateSettings()
|
||||
if (shaders_changed)
|
||||
CompilePrograms();
|
||||
|
||||
UpdateDisplay();
|
||||
if (framebuffer_changed)
|
||||
{
|
||||
RestoreGraphicsAPIState();
|
||||
UpdateDepthBufferFromMaskBit();
|
||||
UpdateDisplay();
|
||||
ResetGraphicsAPIState();
|
||||
}
|
||||
}
|
||||
|
||||
void GPU_HW_OpenGL::MapBatchVertexPointer(u32 required_vertices)
|
||||
@ -274,8 +280,6 @@ bool GPU_HW_OpenGL::CreateFramebuffer()
|
||||
glEnable(GL_SCISSOR_TEST);
|
||||
old_vram_texture.Destroy();
|
||||
glDeleteFramebuffers(1, &old_vram_fbo);
|
||||
|
||||
UpdateDepthBufferFromMaskBit();
|
||||
}
|
||||
|
||||
SetFullVRAMDirtyRectangle();
|
||||
|
Reference in New Issue
Block a user