new backend: glx: use glFinish instead of glXWaitGL

The API document claims they achieve the same thing, apparently not.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2019-04-20 02:09:22 +01:00
parent 24c7dcfd6c
commit 5a8b82f537
No known key found for this signature in database
GPG Key ID: 37C999F617EA1A47
1 changed files with 1 additions and 1 deletions

View File

@ -437,7 +437,7 @@ static void glx_present(backend_t *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();
glFinish();
}
}