From 9779cee934ec03b7ca1574c4547231aab32a70f8 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sun, 12 Jan 2025 00:03:16 +1000 Subject: [PATCH] GPU/HW: Ensure texture window bits are initialized Fixes broken rendering after loading state or switching renderer in some games, e.g. GTA2. --- src/core/gpu_hw.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/gpu_hw.h b/src/core/gpu_hw.h index fd909a995..0de994ad1 100644 --- a/src/core/gpu_hw.h +++ b/src/core/gpu_hw.h @@ -342,7 +342,7 @@ private: u32 bits = INVALID_DRAW_MODE_BITS; } m_draw_mode = {}; - GPUTextureWindow m_texture_window_bits; + GPUTextureWindow m_texture_window_bits = {}; std::unique_ptr m_wireframe_pipeline;