backend: glx: tentatively enable glFinish for NVIDIA
We use the __GL_YIELD=usleep workaround when we detect the NVIDIA driver, so we could use glFinish without the NVIDIA driver taking all the CPU. Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
@@ -1224,6 +1224,7 @@ static bool redirect_start(session_t *ps) {
|
||||
|
||||
// Re-detect driver since we now have a backend
|
||||
ps->drivers = detect_driver(ps->c, ps->backend_data, ps->root);
|
||||
apply_driver_workarounds(ps->drivers);
|
||||
|
||||
root_damaged(ps);
|
||||
|
||||
@@ -1965,6 +1966,7 @@ static session_t *session_init(int argc, char **argv, Display *dpy,
|
||||
// window; non experimental backends always need a target window
|
||||
|
||||
ps->drivers = detect_driver(ps->c, ps->backend_data, ps->root);
|
||||
apply_driver_workarounds(ps->drivers);
|
||||
|
||||
// Initialize filters, must be preceded by OpenGL context creation
|
||||
if (!ps->o.experimental_backends && !init_render(ps)) {
|
||||
|
||||
Reference in New Issue
Block a user