From 2f01dedb691fa063783e1077986a4e53397efabb Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Fri, 3 Jul 2020 11:17:56 -0700 Subject: [PATCH] Modify glx sync to be Linux only. Mac glxew seems to require X11, which we don't use. --- include/gl_utils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/gl_utils.h b/include/gl_utils.h index 258d25df0b..4b5d483902 100644 --- a/include/gl_utils.h +++ b/include/gl_utils.h @@ -24,7 +24,7 @@ #ifndef GL_UTILS_H #define GL_UTILS_H -#ifndef _WIN32 +#ifdef __linux__ #include #endif @@ -42,7 +42,7 @@ public: { /// This routine is written for Linux only. The equivalent functions under Windows would /// include and call wglSwapIntervalEXT - #ifndef _WIN32 + #ifdef __linux__ Display *dpy = glXGetCurrentDisplay(); GLXDrawable drawable = glXGetCurrentDrawable();