mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-22 05:45:38 +00:00
GPU/HW: Fix possible crash (again)
This commit is contained in:
parent
cdea4eb68b
commit
cdb614a51f
|
@ -413,10 +413,15 @@ void GPU_HW::UpdateSettings(const Settings& old_settings)
|
|||
{
|
||||
m_pgxp_depth_buffer = g_settings.UsingPGXPDepthBuffer();
|
||||
m_batch.use_depth_buffer = false;
|
||||
if (m_pgxp_depth_buffer)
|
||||
ClearDepthBuffer();
|
||||
else if (m_vram_texture) // might be null when resizing
|
||||
UpdateDepthBufferFromMaskBit();
|
||||
|
||||
// might be null when resizing
|
||||
if (m_vram_texture)
|
||||
{
|
||||
if (m_pgxp_depth_buffer)
|
||||
ClearDepthBuffer();
|
||||
else
|
||||
UpdateDepthBufferFromMaskBit();
|
||||
}
|
||||
}
|
||||
|
||||
UpdateSoftwareRenderer(true);
|
||||
|
|
Loading…
Reference in a new issue