Skip to content

Commit

Permalink
GPU/HW: Use default initialization for BatchConfig
Browse files Browse the repository at this point in the history
Reduce the risk of below...
  • Loading branch information
stenzek committed Jan 11, 2025
1 parent 9779cee commit ee1da34
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/core/gpu_hw.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,14 @@ class GPU_HW final : public GPUBackend

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;
Expand Down Expand Up @@ -317,7 +317,7 @@ class GPU_HW final : public GPUBackend

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
Expand Down

0 comments on commit ee1da34

Please sign in to comment.