Skip to content

Commit

Permalink
GPU/HW: Fix possible crash when changing texture filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Jun 30, 2024
1 parent 0375199 commit e169189
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/gpu_hw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@ void GPU_HW::UpdateSettings(const Settings& old_settings)
m_clamp_uvs = clamp_uvs;
m_compute_uv_range = m_clamp_uvs;
m_allow_sprite_mode = ShouldAllowSpriteMode(resolution_scale, m_texture_filtering, m_sprite_texture_filtering);
m_batch.sprite_mode = (m_allow_sprite_mode && m_batch.sprite_mode);

CheckSettings();

Expand Down

0 comments on commit e169189

Please sign in to comment.