gl: Fix crash in texture cache due to incorrect surface handling

This commit is contained in:
kd-11 2025-02-08 19:46:06 +03:00 committed by kd-11
parent 85880e6037
commit 5907a6a67d

View file

@ -305,7 +305,7 @@ namespace gl
}
const bool linear_interp = is_depth_texture() ? false : true;
g_hw_blitter->scale_image(cmd, vram_texture, scaled_texture.get(), src_area, dst_area, linear_interp, {});
g_hw_blitter->scale_image(cmd, target_texture, scaled_texture.get(), src_area, dst_area, linear_interp, {});
target_texture = scaled_texture.get();
}
}