From e1691894411302d33adfa2a9ca76ca34c2a198a1 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sun, 30 Jun 2024 17:33:10 +1000 Subject: [PATCH] GPU/HW: Fix possible crash when changing texture filtering --- src/core/gpu_hw.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/gpu_hw.cpp b/src/core/gpu_hw.cpp index ee683fb33..c236b0ac2 100644 --- a/src/core/gpu_hw.cpp +++ b/src/core/gpu_hw.cpp @@ -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();