driver: enable xrender-sync-fence on NVIDIA driver

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2020-04-22 20:20:22 +01:00
parent cbe34158f3
commit 30dfc8e0ac
No known key found for this signature in database
GPG Key ID: 37C999F617EA1A47
1 changed files with 1 additions and 0 deletions

View File

@ -16,6 +16,7 @@
void apply_driver_workarounds(struct session *ps, enum driver driver) { void apply_driver_workarounds(struct session *ps, enum driver driver) {
if (driver & DRIVER_NVIDIA) { if (driver & DRIVER_NVIDIA) {
setenv("__GL_YIELD", "usleep", true); setenv("__GL_YIELD", "usleep", true);
ps->o.xrender_sync_fence = true;
} }
} }