new backend: glx: use glFinish/glXWaitGL if not on NVIDIA

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui
2019-04-20 01:10:04 +01:00
parent b35bfd07d1
commit c55088944a
3 changed files with 15 additions and 0 deletions

View File

@@ -435,6 +435,10 @@ err:
static void glx_present(backend_t *base) {
struct _glx_data *gd = (void *)base;
glXSwapBuffers(gd->display, gd->target_win);
// XXX there should be no need to block compton will wait for render to finish
if (!gd->gl.is_nvidia) {
glXWaitGL();
}
}
static int glx_buffer_age(backend_t *base) {