1
0
Fork 0
mirror of https://github.com/yshui/picom.git synced 2024-11-11 13:51:02 -05:00

backend: don't choose SGI_video_sync vblank if opengl is not enabled

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2024-01-29 21:02:36 +00:00
parent f3bdd01dc8
commit 1bfb129985
No known key found for this signature in database
GPG key ID: D3A4405BE6CC17F4

View file

@ -20,10 +20,13 @@ void apply_driver_workarounds(struct session *ps, enum driver driver) {
}
enum vblank_scheduler_type choose_vblank_scheduler(enum driver driver) {
enum vblank_scheduler_type type = VBLANK_SCHEDULER_PRESENT;
#ifdef CONFIG_OPENGL
if (driver & DRIVER_NVIDIA) {
return VBLANK_SCHEDULER_SGI_VIDEO_SYNC;
type = VBLANK_SCHEDULER_SGI_VIDEO_SYNC;
}
return VBLANK_SCHEDULER_PRESENT;
#endif
return type;
}
enum driver detect_driver(xcb_connection_t *c, backend_t *backend_data, xcb_window_t window) {