diff options
author | Alexey Yakovenko <waker@users.sourceforge.net> | 2013-10-27 21:48:58 +0100 |
---|---|---|
committer | Alexey Yakovenko <waker@users.sourceforge.net> | 2013-10-27 21:48:58 +0100 |
commit | aa9de77ed52bd8d7d70eba8533952121b836be9b (patch) | |
tree | 9cebb59b83fc1e515e77f373aac354693c2b1353 /plugins | |
parent | b5361dd3302d5368623d3acd49c0378bffee938e (diff) |
gtkui: fixed gtkglext dependency
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/gtkui/gtkuigl.c | 4 | ||||
-rw-r--r-- | plugins/gtkui/gtkuigl.h | 6 |
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> |