From 84ccebd9b9fba47f1e08bbc263b87174a133ea01 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 12 May 2016 20:08:49 +0200 Subject: vo_opengl: reorganize texture format handling This merges all knowledge about texture format into a central table. Most of the work done here is actually identifying which formats exactly are supported by OpenGL(ES) under which circumstances, and keeping this information in the format table in a somewhat declarative way. (Although only to the extend needed by mpv.) In particular, ES and float formats are a horrible mess. Again this is a big refactor that might cause regression on "obscure" configurations. --- video/out/opengl/header_fixes.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'video/out/opengl/header_fixes.h') diff --git a/video/out/opengl/header_fixes.h b/video/out/opengl/header_fixes.h index 92867a0d01..964b33a3fa 100644 --- a/video/out/opengl/header_fixes.h +++ b/video/out/opengl/header_fixes.h @@ -98,6 +98,10 @@ #define GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE 0x93A0 #endif +#ifndef GL_RGB_RAW_422_APPLE +#define GL_RGB_RAW_422_APPLE 0x8A51 +#endif + #undef MP_GET_GL_WORKAROUNDS #endif // MP_GET_GL_WORKAROUNDS -- cgit v1.2.3