mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-30 01:25:49 +00:00
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:
parent
09e27e3082
commit
0ae9e8013b
|
@ -471,8 +471,10 @@ static void TestPolygonHeaderBits(IEmulator *Emu)
|
||||||
if ((unknownPolyBits[idx] & mask))
|
if ((unknownPolyBits[idx] & mask))
|
||||||
{
|
{
|
||||||
Emu->RenderFrame();
|
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";
|
std::string file = Util::Format() << "Analysis/" << GetFileBaseName(s_gfxStatePath) << "." << idx << "_" << Util::Hex(mask) << ".bmp";
|
||||||
SaveFrameBuffer(file);
|
SaveFrameBuffer(file);
|
||||||
|
SDL_GL_SwapBuffers(); // show some visual feedback
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue