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:
parent
f3bdd01dc8
commit
1bfb129985
1 changed files with 5 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue