diff libvo/gl_common.h @ 35089:a87c434ecaa3

Allow compiling -vo gl with OSX backend even if X11 and SDL are not available.
author reimar
date Thu, 13 Sep 2012 19:57:24 +0000
parents 078a00af881c
children 2ce01f3d3b37
line wrap: on
line diff
--- a/libvo/gl_common.h	Thu Sep 13 19:41:02 2012 +0000
+++ b/libvo/gl_common.h	Thu Sep 13 19:57:24 2012 +0000
@@ -44,10 +44,12 @@
 #include <EGL/egl.h>
 #include "x11_common.h"
 #endif
-#ifdef CONFIG_COREVIDEO
+#ifdef CONFIG_GL_OSX
 #include "osx_common.h"
+#include <OpenGL/OpenGL.h>
+#else
+#include <GL/gl.h>
 #endif
-#include <GL/gl.h>
 
 // workaround for some gl.h headers
 #ifndef GLAPIENTRY