From cdea4eb68b231ed44bbab7ba7e7e91a0c8c16a33 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Wed, 31 Jan 2024 20:02:34 +1000 Subject: [PATCH] GPU/HW: Fix possible crash on setting change --- src/core/gpu_hw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/gpu_hw.cpp b/src/core/gpu_hw.cpp index 88a7704c8..24237930f 100644 --- a/src/core/gpu_hw.cpp +++ b/src/core/gpu_hw.cpp @@ -415,7 +415,7 @@ void GPU_HW::UpdateSettings(const Settings& old_settings) m_batch.use_depth_buffer = false; if (m_pgxp_depth_buffer) ClearDepthBuffer(); - else + else if (m_vram_texture) // might be null when resizing UpdateDepthBufferFromMaskBit(); }