GS: Fix Wunused-variable warnings.

This commit is contained in:
lightningterror committed 2022-03-17 00:50:28 +01:00
1 parent 9a1a399bac
commit c9a3420f85
2 files changed
+8 -14

No files matched your search

-1
View File
@@ -321,7 +321,6 @@ size_t GSDumpLzma::Read(void* ptr, size_t size)
{
size_t off = 0;
uint8_t* dst = (uint8_t*)ptr;
size_t full_size = size;
while (size && !IsEof())
{
if (m_avail == 0)
+8 -13
View File
@@ -1196,24 +1196,19 @@ void GSRendererHW::RoundSpriteOffset()
void GSRendererHW::Draw()
{
if (s_dump)
if (s_dump && (s_n >= s_saven))
{
const u64 frame = g_perfmon.GetFrame();
std::string s;
if (s_n >= s_saven)
{
// Dump Register state
s = format("%05d_context.txt", s_n);
// Dump Register state
s = format("%05d_context.txt", s_n);
m_env.Dump(m_dump_root + s);
m_context->Dump(m_dump_root + s);
m_env.Dump(m_dump_root + s);
m_context->Dump(m_dump_root + s);
// Dump vertices
s = format("%05d_vertex.txt", s_n);
DumpVertices(m_dump_root + s);
}
// Dump vertices
s = format("%05d_vertex.txt", s_n);
DumpVertices(m_dump_root + s);
}
if (IsBadFrame())
{