Skip to content

Commit

Permalink
GPU/HW: Ensure texture window bits are initialized
Browse files Browse the repository at this point in the history
Fixes broken rendering after loading state or switching renderer in some
games, e.g. GTA2.
  • Loading branch information
stenzek committed Jan 11, 2025
1 parent 9c35b0e commit 9779cee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/gpu_hw.h
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ class GPU_HW final : public GPUBackend
u32 bits = INVALID_DRAW_MODE_BITS;
} m_draw_mode = {};

GPUTextureWindow m_texture_window_bits;
GPUTextureWindow m_texture_window_bits = {};

std::unique_ptr<GPUPipeline> m_wireframe_pipeline;

Expand Down

0 comments on commit 9779cee

Please sign in to comment.