From 11cf244e97c98796ce3b62feb63e6e6d0fc04be6 Mon Sep 17 00:00:00 2001 From: refractionpcsx2 Date: Sat, 16 Apr 2022 02:24:53 +0100 Subject: [PATCH] GS: Clean up warnings --- pcsx2/GS/Renderers/Common/GSDevice.cpp | 2 +- pcsx2/GS/Renderers/Common/GSRenderer.cpp | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/pcsx2/GS/Renderers/Common/GSDevice.cpp b/pcsx2/GS/Renderers/Common/GSDevice.cpp index f95194e484..76d0323c68 100644 --- a/pcsx2/GS/Renderers/Common/GSDevice.cpp +++ b/pcsx2/GS/Renderers/Common/GSDevice.cpp @@ -49,7 +49,7 @@ const char* shaderName(ShaderConvert value) } } -static const int MipmapLevelsForSize(int width, int height) +static int MipmapLevelsForSize(int width, int height) { return std::min(static_cast(std::log2(std::max(width, height))) + 1, MAXIMUM_TEXTURE_MIPMAP_LEVELS); } diff --git a/pcsx2/GS/Renderers/Common/GSRenderer.cpp b/pcsx2/GS/Renderers/Common/GSRenderer.cpp index 6d21a376f2..fdc3405272 100644 --- a/pcsx2/GS/Renderers/Common/GSRenderer.cpp +++ b/pcsx2/GS/Renderers/Common/GSRenderer.cpp @@ -194,8 +194,6 @@ bool GSRenderer::Merge(int field) const bool slbg = m_regs->PMODE.SLBG; const GSVector2i resolution(GetResolution()); - const GSVideoMode videomode = GetVideoMode(); - bool scanmask_frame = true; for (int i = 0; i < 2; i++)