GS: Clean up warnings

This commit is contained in:
refractionpcsx2 2022-04-16 02:24:53 +01:00
parent 6673bd9212
commit 11cf244e97
2 changed files with 1 additions and 3 deletions

View File

@ -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<int>(std::log2(std::max(width, height))) + 1, MAXIMUM_TEXTURE_MIPMAP_LEVELS); return std::min(static_cast<int>(std::log2(std::max(width, height))) + 1, MAXIMUM_TEXTURE_MIPMAP_LEVELS);
} }

View File

@ -194,8 +194,6 @@ bool GSRenderer::Merge(int field)
const bool slbg = m_regs->PMODE.SLBG; const bool slbg = m_regs->PMODE.SLBG;
const GSVector2i resolution(GetResolution()); const GSVector2i resolution(GetResolution());
const GSVideoMode videomode = GetVideoMode();
bool scanmask_frame = true; bool scanmask_frame = true;
for (int i = 0; i < 2; i++) for (int i = 0; i < 2; i++)