[MPlayer-cvslog] r36274 - trunk/libvo/gl_common.c
reimar
subversion at mplayerhq.hu
Thu May 16 21:20:32 CEST 2013
Author: reimar
Date: Thu May 16 21:20:31 2013
New Revision: 36274
Log:
Support 16-bit YUV on OpenGL ES.
Modified:
trunk/libvo/gl_common.c
Modified: trunk/libvo/gl_common.c
==============================================================================
--- trunk/libvo/gl_common.c Thu May 16 20:22:53 2013 (r36273)
+++ trunk/libvo/gl_common.c Thu May 16 21:20:31 2013 (r36274)
@@ -595,7 +595,8 @@ static void getFunctions(void *(*getProc
else
hqtexfmt = GL_RGB16;
use_depth_l16 = !!strstr(allexts, "GL_EXT_shadow") ||
- !!strstr(allexts, "GL_ARB_shadow");
+ !!strstr(allexts, "GL_ARB_shadow") ||
+ !!strstr(allexts, "GL_OES_depth_texture");
free(allexts);
}
@@ -635,8 +636,8 @@ void glCreateClearTex(GLenum target, GLe
// ensure we get enough bits
GLint bits = 0;
mpglGetTexLevelParameteriv(target, 0, GL_TEXTURE_LUMINANCE_SIZE, &bits);
- if (bits > 0 && bits < 14 && (use_depth_l16 || HAVE_BIGENDIAN)) {
- fmt = GL_DEPTH_COMPONENT16;
+ if (bits >= 0 && bits < 14 && (use_depth_l16 || HAVE_BIGENDIAN)) {
+ fmt = GL_DEPTH_COMPONENT;
format = GL_DEPTH_COMPONENT;
if (!use_depth_l16) {
// if we cannot get 16 bit anyway, we can fall back
More information about the MPlayer-cvslog
mailing list