Modify glx sync to be Linux only.

Mac glxew seems to require X11, which we don't use.
This commit is contained in:
Seth Hillbrand 2020-07-03 11:17:56 -07:00
parent 286c36b7da
commit 2f01dedb69
1 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@
#ifndef GL_UTILS_H #ifndef GL_UTILS_H
#define GL_UTILS_H #define GL_UTILS_H
#ifndef _WIN32 #ifdef __linux__
#include <GL/glxew.h> #include <GL/glxew.h>
#endif #endif
@ -42,7 +42,7 @@ public:
{ {
/// This routine is written for Linux only. The equivalent functions under Windows would /// This routine is written for Linux only. The equivalent functions under Windows would
/// include <wglext.h> and call wglSwapIntervalEXT /// include <wglext.h> and call wglSwapIntervalEXT
#ifndef _WIN32 #ifdef __linux__
Display *dpy = glXGetCurrentDisplay(); Display *dpy = glXGetCurrentDisplay();
GLXDrawable drawable = glXGetCurrentDrawable(); GLXDrawable drawable = glXGetCurrentDrawable();