From 48fefddcb244bf6e6435777c0ce9c6a54efd380f Mon Sep 17 00:00:00 2001 From: lightningterror <18107717+lightningterror@users.noreply.github.com> Date: Fri, 27 Jun 2025 18:53:54 +0200 Subject: [PATCH] GS/HW: Fix -Wunused-variable warnings. --- pcsx2/GS/Renderers/HW/GSRendererHW.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/pcsx2/GS/Renderers/HW/GSRendererHW.cpp b/pcsx2/GS/Renderers/HW/GSRendererHW.cpp index 2c6393e481..48ad1007b2 100644 --- a/pcsx2/GS/Renderers/HW/GSRendererHW.cpp +++ b/pcsx2/GS/Renderers/HW/GSRendererHW.cpp @@ -2360,7 +2360,6 @@ void GSRendererHW::Draw() const u32 fm_mask = GSLocalMemory::m_psm[m_cached_ctx.FRAME.PSM].fmsk; // Note required to compute TryAlphaTest below. So do it now. - const GSDrawingEnvironment& env = *m_draw_env; const GSLocalMemory::psm_t& tex_psm = GSLocalMemory::m_psm[m_cached_ctx.TEX0.PSM]; if (PRIM->TME && tex_psm.pal > 0) { @@ -3694,8 +3693,6 @@ void GSRendererHW::Draw() // Size here should match whichever is biggest, since that's probably what's going to happen with it further down. const int new_height = std::min(2048, std::max(t_size.y, static_cast(vertical_size))) * ds->m_scale; const int new_width = std::min(2048, std::max(t_size.x, static_cast(horizontal_size))) * ds->m_scale; - const int height_diff = new_height - (ds->m_unscaled_size.y * ds->m_scale); - const int width_diff = new_width - (ds->m_unscaled_size.x * ds->m_scale); if (GSTexture* tex = g_gs_device->CreateDepthStencil(new_width, new_height, GSTexture::Format::DepthStencil, true)) {