From ee1da343abc9be95083e0800ee5c7009016caf03 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sun, 12 Jan 2025 00:03:43 +1000 Subject: [PATCH] GPU/HW: Use default initialization for BatchConfig Reduce the risk of below... --- src/core/gpu_hw.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/core/gpu_hw.h b/src/core/gpu_hw.h index 0de994ad1..8ce46da41 100644 --- a/src/core/gpu_hw.h +++ b/src/core/gpu_hw.h @@ -135,14 +135,14 @@ private: struct BatchConfig { - BatchTextureMode texture_mode = BatchTextureMode::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; - bool sprite_mode = false; + BatchTextureMode texture_mode; + GPUTransparencyMode transparency_mode; + bool dithering; + bool interlacing; + bool set_mask_while_drawing; + bool check_mask_before_draw; + bool use_depth_buffer; + bool sprite_mode; // Returns the render mode for this batch. BatchRenderMode GetRenderMode() const; @@ -317,7 +317,7 @@ private: bool m_batch_ubo_dirty = true; bool m_drawing_area_changed = true; - BatchConfig m_batch; + BatchConfig m_batch = {}; GPUTextureCache::SourceKey m_texture_cache_key = {}; // Changed state