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 c55088944a
commit 8e5210cb9c
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); glXSwapBuffers(gd->display, gd->target_win);
// XXX there should be no need to block compton will wait for render to finish // XXX there should be no need to block compton will wait for render to finish
if (!gd->gl.is_nvidia) { if (!gd->gl.is_nvidia) {
glXWaitGL(); glFinish();
} }
} }