1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-11 04:28:58 +00:00

Switched to a client wait, as I try to figure out what's going on.

This commit is contained in:
Thomas Harte 2016-03-18 21:21:35 -04:00
parent 2e4af90e2d
commit 620257e29e

View File

@ -197,7 +197,7 @@ void OpenGLOutputBuilder::draw_frame(unsigned int output_width, unsigned int out
{ {
if(_output_buffer_sync) if(_output_buffer_sync)
{ {
glWaitSync(_output_buffer_sync, 0, GL_TIMEOUT_IGNORED); glClientWaitSync(_output_buffer_sync, GL_SYNC_FLUSH_COMMANDS_BIT, ~(GLuint64)0);
glDeleteSync(_output_buffer_sync); glDeleteSync(_output_buffer_sync);
} }
_output_buffer_sync = glFenceSync(GL_SYNC_GPU_COMMANDS_COMPLETE, 0); _output_buffer_sync = glFenceSync(GL_SYNC_GPU_COMMANDS_COMPLETE, 0);