1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-10-04 01:57:54 +00:00

Actually, I guess that to fulfil the contract I can't silently decide not to draw if I'm being told I definitely need to draw.

This commit is contained in:
Thomas Harte 2016-07-01 16:27:45 -04:00
parent 4ac619f569
commit eefd0c17b6

View File

@ -193,7 +193,7 @@ void OpenGLOutputBuilder::draw_frame(unsigned int output_width, unsigned int out
if(_fence != nullptr)
{
// if the GPU is still busy, don't wait; we'll catch it next time
if(glClientWaitSync(_fence, GL_SYNC_FLUSH_COMMANDS_BIT, 0) == GL_TIMEOUT_EXPIRED)
if(glClientWaitSync(_fence, GL_SYNC_FLUSH_COMMANDS_BIT, only_if_dirty ? 0 : GL_TIMEOUT_IGNORED) == GL_TIMEOUT_EXPIRED)
{
_draw_mutex->unlock();
return;