mirror of
https://github.com/stenzek/duckstation.git
synced 2025-06-07 12:05:52 +00:00
GPU/HW: Use default initialization for BatchConfig
Reduce the risk of below...
This commit is contained in:
parent
9779cee934
commit
ee1da343ab
@ -135,14 +135,14 @@ private:
|
|||||||
|
|
||||||
struct BatchConfig
|
struct BatchConfig
|
||||||
{
|
{
|
||||||
BatchTextureMode texture_mode = BatchTextureMode::Disabled;
|
BatchTextureMode texture_mode;
|
||||||
GPUTransparencyMode transparency_mode = GPUTransparencyMode::Disabled;
|
GPUTransparencyMode transparency_mode;
|
||||||
bool dithering = false;
|
bool dithering;
|
||||||
bool interlacing = false;
|
bool interlacing;
|
||||||
bool set_mask_while_drawing = false;
|
bool set_mask_while_drawing;
|
||||||
bool check_mask_before_draw = false;
|
bool check_mask_before_draw;
|
||||||
bool use_depth_buffer = false;
|
bool use_depth_buffer;
|
||||||
bool sprite_mode = false;
|
bool sprite_mode;
|
||||||
|
|
||||||
// Returns the render mode for this batch.
|
// Returns the render mode for this batch.
|
||||||
BatchRenderMode GetRenderMode() const;
|
BatchRenderMode GetRenderMode() const;
|
||||||
@ -317,7 +317,7 @@ private:
|
|||||||
|
|
||||||
bool m_batch_ubo_dirty = true;
|
bool m_batch_ubo_dirty = true;
|
||||||
bool m_drawing_area_changed = true;
|
bool m_drawing_area_changed = true;
|
||||||
BatchConfig m_batch;
|
BatchConfig m_batch = {};
|
||||||
GPUTextureCache::SourceKey m_texture_cache_key = {};
|
GPUTextureCache::SourceKey m_texture_cache_key = {};
|
||||||
|
|
||||||
// Changed state
|
// Changed state
|
||||||
|
Loading…
x
Reference in New Issue
Block a user