From e40610ea773cc31d7c659415a8aaf8528474664e Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Tue, 2 Sep 2025 13:09:39 +1000 Subject: [PATCH] [client] egl: sync on fence without force glFlush in non-dmabuf path --- client/renderers/EGL/texture_buffer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/renderers/EGL/texture_buffer.c b/client/renderers/EGL/texture_buffer.c index 41f26a53..f8da193a 100644 --- a/client/renderers/EGL/texture_buffer.c +++ b/client/renderers/EGL/texture_buffer.c @@ -255,7 +255,6 @@ EGL_TexStatus egl_texBufferStreamProcess(EGL_Texture * texture) glBindBuffer(GL_PIXEL_UNPACK_BUFFER, 0); this->sync = glFenceSync(GL_SYNC_GPU_COMMANDS_COMPLETE, 0); - glFlush(); } return EGL_TEX_STATUS_OK; @@ -271,7 +270,8 @@ EGL_TexStatus egl_texBufferStreamGet(EGL_Texture * texture, GLuint * tex, if (this->sync) { - switch(glClientWaitSync(this->sync, 0, 40000000)) // 40ms + switch(glClientWaitSync( + this->sync, GL_SYNC_FLUSH_COMMANDS_BIT, 40000000)) //40ms { case GL_ALREADY_SIGNALED: case GL_CONDITION_SATISFIED: