made gfx_finish work again

This commit is contained in:
oy 2012-01-06 14:12:49 +01:00
parent 12f76e7f8d
commit 71dd0c5aab
3 changed files with 6 additions and 0 deletions

View file

@ -290,6 +290,9 @@ void CCommandProcessorFragment_SDL::Cmd_Shutdown(const SCommand_Shutdown *pComma
void CCommandProcessorFragment_SDL::Cmd_Swap(const CCommandBuffer::SCommand_Swap *pCommand)
{
GL_SwapBuffers(m_GLContext);
if(pCommand->m_Finish)
glFinish();
}
void CCommandProcessorFragment_SDL::Cmd_VideoModes(const CCommandBuffer::SCommand_VideoModes *pCommand)

View file

@ -837,6 +837,7 @@ void CGraphics_Threaded::Swap()
// add swap command
CCommandBuffer::SCommand_Swap Cmd;
Cmd.m_Finish = g_Config.m_GfxFinish;
m_pCommandBuffer->AddCommand(Cmd);
// kick the command buffer

View file

@ -199,6 +199,8 @@ public:
struct SCommand_Swap : public SCommand
{
SCommand_Swap() : SCommand(CMD_SWAP) {}
int m_Finish;
};
struct SCommand_Texture_Create : public SCommand