Fixed polygon header bit analysis code: was forgetting to swap GL buffer back to retrieve pixels from last rendered frame

This commit is contained in:
Bart Trzynadlowski 2016-04-28 01:27:35 +00:00
parent 09e27e3082
commit 0ae9e8013b

View file

@ -471,8 +471,10 @@ static void TestPolygonHeaderBits(IEmulator *Emu)
if ((unknownPolyBits[idx] & mask))
{
Emu->RenderFrame();
SDL_GL_SwapBuffers(); // swap the buffer second time to get back rendered frame
std::string file = Util::Format() << "Analysis/" << GetFileBaseName(s_gfxStatePath) << "." << idx << "_" << Util::Hex(mask) << ".bmp";
SaveFrameBuffer(file);
SDL_GL_SwapBuffers(); // show some visual feedback
}
}
}