GPU/HW: Fix incorrect initial transparency mode

Fixes broken menus in Road Rash after loading state.
This commit is contained in:
Connor McLaughlin 2021-07-12 14:55:02 +10:00
parent 6894a719d5
commit 552b0098ef

View file

@ -97,13 +97,13 @@ protected:
struct BatchConfig struct BatchConfig
{ {
GPUTextureMode texture_mode; GPUTextureMode texture_mode = GPUTextureMode::Disabled;
GPUTransparencyMode transparency_mode; GPUTransparencyMode transparency_mode = GPUTransparencyMode::Disabled;
bool dithering; bool dithering = false;
bool interlacing; bool interlacing = false;
bool set_mask_while_drawing; bool set_mask_while_drawing = false;
bool check_mask_before_draw; bool check_mask_before_draw = false;
bool use_depth_buffer; bool use_depth_buffer = false;
// Returns the render mode for this batch. // Returns the render mode for this batch.
BatchRenderMode GetRenderMode() const BatchRenderMode GetRenderMode() const
@ -373,7 +373,7 @@ protected:
bool m_using_uv_limits = false; bool m_using_uv_limits = false;
bool m_pgxp_depth_buffer = false; bool m_pgxp_depth_buffer = false;
BatchConfig m_batch = {}; BatchConfig m_batch;
BatchUBOData m_batch_ubo_data = {}; BatchUBOData m_batch_ubo_data = {};
// Bounding box of VRAM area that the GPU has drawn into. // Bounding box of VRAM area that the GPU has drawn into.