diff libvo/gl_common.c @ 27865:428125c9e08e

For fragment programs, check GL_MAX_TEXTURE_IMAGE_UNITS instead of GL_MAX_TEXTURE_UNITS.
author reimar
date Thu, 06 Nov 2008 18:39:37 +0000
parents 524f6a87cd23
children 9829cfa41d6d
line wrap: on
line diff
--- a/libvo/gl_common.c	Thu Nov 06 12:41:23 2008 +0000
+++ b/libvo/gl_common.c	Thu Nov 06 18:39:37 2008 +0000
@@ -1193,7 +1193,7 @@
     memcpy(chrom_scale_texs, lum_scale_texs, sizeof(chrom_scale_texs));
   else
     create_scaler_textures(YUV_CHROM_SCALER(type), &cur_texu, chrom_scale_texs);
-  glGetIntegerv(GL_MAX_TEXTURE_UNITS, &i);
+  glGetIntegerv(GL_MAX_TEXTURE_IMAGE_UNITS, &i);
   if (i < cur_texu)
     mp_msg(MSGT_VO, MSGL_ERR,
            "[gl] %i texture units needed for this type of YUV fragment support (found %i)\n",