GPU/HW: Fix possible crash (again)

pull/3108/head
Stenzek 3 years ago
parent cdea4eb68b
commit cdb614a51f
No known key found for this signature in database

@ -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…
Cancel
Save