Mercurial > mplayer.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
35088:8287c476bf53 | 35089:a87c434ecaa3 |
---|---|
42 #endif | 42 #endif |
43 #ifdef CONFIG_GL_EGL_X11 | 43 #ifdef CONFIG_GL_EGL_X11 |
44 #include <EGL/egl.h> | 44 #include <EGL/egl.h> |
45 #include "x11_common.h" | 45 #include "x11_common.h" |
46 #endif | 46 #endif |
47 #ifdef CONFIG_COREVIDEO | 47 #ifdef CONFIG_GL_OSX |
48 #include "osx_common.h" | 48 #include "osx_common.h" |
49 #endif | 49 #include <OpenGL/OpenGL.h> |
50 #else | |
50 #include <GL/gl.h> | 51 #include <GL/gl.h> |
52 #endif | |
51 | 53 |
52 // workaround for some gl.h headers | 54 // workaround for some gl.h headers |
53 #ifndef GLAPIENTRY | 55 #ifndef GLAPIENTRY |
54 #ifdef APIENTRY | 56 #ifdef APIENTRY |
55 #define GLAPIENTRY APIENTRY | 57 #define GLAPIENTRY APIENTRY |