mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-04-27 14:35:41 -04:00
GPU/HW: Fix possible crash on setting change
This commit is contained in:
parent
a5825b642e
commit
cdea4eb68b
@ -415,7 +415,7 @@ void GPU_HW::UpdateSettings(const Settings& old_settings)
|
|||||||
m_batch.use_depth_buffer = false;
|
m_batch.use_depth_buffer = false;
|
||||||
if (m_pgxp_depth_buffer)
|
if (m_pgxp_depth_buffer)
|
||||||
ClearDepthBuffer();
|
ClearDepthBuffer();
|
||||||
else
|
else if (m_vram_texture) // might be null when resizing
|
||||||
UpdateDepthBufferFromMaskBit();
|
UpdateDepthBufferFromMaskBit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user