From f3bdd01dc8afcc1e311ec6e81d999f2ec2b9965a Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Mon, 29 Jan 2024 17:44:59 +0000 Subject: [PATCH] vblank: don't use symbols from backend/gl/glx.h sgi video sync runs in a separate thread, we don't want to have potential races between threads. Signed-off-by: Yuxuan Shui --- src/vblank.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vblank.c b/src/vblank.c index ff83a9a7..a6d9e039 100644 --- a/src/vblank.c +++ b/src/vblank.c @@ -18,7 +18,6 @@ #include #include -#include "backend/gl/glx.h" #endif #include "compiler.h" @@ -96,6 +95,8 @@ struct sgi_video_sync_thread_args { pthread_cond_t start_cnd; }; +static PFNGLXWAITVIDEOSYNCSGIPROC glXWaitVideoSyncSGI; + static bool check_sgi_video_sync_extension(Display *dpy, int screen) { const char *glx_ext = glXQueryExtensionsString(dpy, screen); const char *needle = "GLX_SGI_video_sync";