diff options
author | Aman Gupta <aman@tmm1.net> | 2016-10-19 12:07:05 -0700 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-10-20 17:45:25 +0200 |
commit | 4bd3e51fbe61ae83bc9f6674646962d24ea1e075 (patch) | |
tree | efc93ffc97d3766038dd99d3b245d9a73d401351 /video | |
parent | 5da510b5fc26800598aa5bbd2c30ccf2f21cf662 (diff) | |
download | mpv-4bd3e51fbe61ae83bc9f6674646962d24ea1e075.tar.bz2 mpv-4bd3e51fbe61ae83bc9f6674646962d24ea1e075.tar.xz |
opengl: compile against iOS OpenGLES implementation
Diffstat (limited to 'video')
-rw-r--r-- | video/out/opengl/common.h | 3 | ||||
-rw-r--r-- | video/out/opengl/header_fixes.h | 17 |
2 files changed, 20 insertions, 0 deletions
diff --git a/video/out/opengl/common.h b/video/out/opengl/common.h index 5abe839b8d..afb5b61f7e 100644 --- a/video/out/opengl/common.h +++ b/video/out/opengl/common.h @@ -36,6 +36,9 @@ #include <OpenGL/gl.h> #include <OpenGL/gl3.h> #include <OpenGL/glext.h> +#elif HAVE_IOS_GL +#include <OpenGLES/ES2/glext.h> +#include <OpenGLES/ES3/glext.h> #elif HAVE_ANDROID_GL #include <GLES3/gl3.h> #else diff --git a/video/out/opengl/header_fixes.h b/video/out/opengl/header_fixes.h index 9953f7e497..9a7108dcda 100644 --- a/video/out/opengl/header_fixes.h +++ b/video/out/opengl/header_fixes.h @@ -92,6 +92,23 @@ #define GL_UNSIGNED_SHORT_8_8_REV_APPLE 0x85BB #endif +#if HAVE_IOS_GL +#define GL_WRITE_ONLY GL_WRITE_ONLY_OES +#define GL_TEXTURE_1D 0x0DE0 +#define GL_R16 0x822A +#define GL_RG16 0x822C +#define GL_RGB10 0x8052 +#define GL_RGB16 0x8054 +#define GL_RGBA12 0x805A +#define GL_RGBA16 0x805B +#define GL_LUMINANCE8 GL_LUMINANCE8_EXT +#define GL_LUMINANCE8_ALPHA8 GL_LUMINANCE8_ALPHA8_EXT +#define GL_LUMINANCE16 0x8042 +#define GL_LUMINANCE16_ALPHA16 0x8048 +#define GL_TEXTURE_RED_SIZE 0x805C +#define GL_TEXTURE_LUMINANCE_SIZE 0x8060 +#endif + // GL_ARB_timer_query and EXT_disjoint_timer_query #ifndef GL_TIME_ELAPSED // Same as GL_TIME_ELAPSED_EXT |