mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
made gfx_finish work again
This commit is contained in:
parent
12f76e7f8d
commit
71dd0c5aab
|
@ -290,6 +290,9 @@ void CCommandProcessorFragment_SDL::Cmd_Shutdown(const SCommand_Shutdown *pComma
|
||||||
void CCommandProcessorFragment_SDL::Cmd_Swap(const CCommandBuffer::SCommand_Swap *pCommand)
|
void CCommandProcessorFragment_SDL::Cmd_Swap(const CCommandBuffer::SCommand_Swap *pCommand)
|
||||||
{
|
{
|
||||||
GL_SwapBuffers(m_GLContext);
|
GL_SwapBuffers(m_GLContext);
|
||||||
|
|
||||||
|
if(pCommand->m_Finish)
|
||||||
|
glFinish();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CCommandProcessorFragment_SDL::Cmd_VideoModes(const CCommandBuffer::SCommand_VideoModes *pCommand)
|
void CCommandProcessorFragment_SDL::Cmd_VideoModes(const CCommandBuffer::SCommand_VideoModes *pCommand)
|
||||||
|
|
|
@ -837,6 +837,7 @@ void CGraphics_Threaded::Swap()
|
||||||
|
|
||||||
// add swap command
|
// add swap command
|
||||||
CCommandBuffer::SCommand_Swap Cmd;
|
CCommandBuffer::SCommand_Swap Cmd;
|
||||||
|
Cmd.m_Finish = g_Config.m_GfxFinish;
|
||||||
m_pCommandBuffer->AddCommand(Cmd);
|
m_pCommandBuffer->AddCommand(Cmd);
|
||||||
|
|
||||||
// kick the command buffer
|
// kick the command buffer
|
||||||
|
|
|
@ -199,6 +199,8 @@ public:
|
||||||
struct SCommand_Swap : public SCommand
|
struct SCommand_Swap : public SCommand
|
||||||
{
|
{
|
||||||
SCommand_Swap() : SCommand(CMD_SWAP) {}
|
SCommand_Swap() : SCommand(CMD_SWAP) {}
|
||||||
|
|
||||||
|
int m_Finish;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct SCommand_Texture_Create : public SCommand
|
struct SCommand_Texture_Create : public SCommand
|
||||||
|
|
Loading…
Reference in a new issue