From 552b0098ef388fe13f117a250cd5628d2fecd112 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Mon, 12 Jul 2021 14:55:02 +1000 Subject: [PATCH] GPU/HW: Fix incorrect initial transparency mode Fixes broken menus in Road Rash after loading state. --- src/core/gpu_hw.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/core/gpu_hw.h b/src/core/gpu_hw.h index 7b8199825..6580189f9 100644 --- a/src/core/gpu_hw.h +++ b/src/core/gpu_hw.h @@ -97,13 +97,13 @@ protected: struct BatchConfig { - GPUTextureMode texture_mode; - GPUTransparencyMode transparency_mode; - bool dithering; - bool interlacing; - bool set_mask_while_drawing; - bool check_mask_before_draw; - bool use_depth_buffer; + GPUTextureMode texture_mode = GPUTextureMode::Disabled; + GPUTransparencyMode transparency_mode = GPUTransparencyMode::Disabled; + bool dithering = false; + bool interlacing = false; + bool set_mask_while_drawing = false; + bool check_mask_before_draw = false; + bool use_depth_buffer = false; // Returns the render mode for this batch. BatchRenderMode GetRenderMode() const @@ -373,7 +373,7 @@ protected: bool m_using_uv_limits = false; bool m_pgxp_depth_buffer = false; - BatchConfig m_batch = {}; + BatchConfig m_batch; BatchUBOData m_batch_ubo_data = {}; // Bounding box of VRAM area that the GPU has drawn into.