mirror of
https://github.com/yshui/picom.git
synced 2024-11-11 13:51:02 -05:00
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 <yshuiv7@gmail.com>
This commit is contained in:
parent
71e29c4128
commit
f3bdd01dc8
1 changed files with 2 additions and 1 deletions
|
@ -18,7 +18,6 @@
|
|||
#include <X11/Xutil.h>
|
||||
#include <pthread.h>
|
||||
|
||||
#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";
|
||||
|
|
Loading…
Reference in a new issue