summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/gtkui/gtkuigl.c4
-rw-r--r--plugins/gtkui/gtkuigl.h6
2 files changed, 7 insertions, 3 deletions
diff --git a/plugins/gtkui/gtkuigl.c b/plugins/gtkui/gtkuigl.c
index e210d03b..25226731 100644
--- a/plugins/gtkui/gtkuigl.c
+++ b/plugins/gtkui/gtkuigl.c
@@ -19,13 +19,13 @@
#include "../../deadbeef.h"
#include "gtkui.h"
#include "support.h"
-#include "gtkuigl.h"
-
#ifdef __APPLE__
#undef USE_OPENGL
#endif
#ifdef USE_OPENGL
+#include "gtkuigl.h"
+
static int gl_initialized;
static int gl_init_state;
//PFNGLXSWAPINTERVALSGIPROC glXSwapIntervalSGI;
diff --git a/plugins/gtkui/gtkuigl.h b/plugins/gtkui/gtkuigl.h
index c2a0d0a9..2bab1836 100644
--- a/plugins/gtkui/gtkuigl.h
+++ b/plugins/gtkui/gtkuigl.h
@@ -19,7 +19,11 @@
#ifndef __GTKUIGL_H
#define __GTKUIGL_H
-#ifndef __APPLE__
+#ifdef __APPLE__
+#undef USE_OPENGL
+#endif
+
+#ifdef USE_OPENGL
#include <gtk/gtkgl.h>
#include <GL/gl.h>
#include <GL/glu.h>