comparison 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
comparison
equal deleted inserted replaced
27864:ab92ea15c414 27865:428125c9e08e
1191 create_scaler_textures(YUV_LUM_SCALER(type), &cur_texu, lum_scale_texs); 1191 create_scaler_textures(YUV_LUM_SCALER(type), &cur_texu, lum_scale_texs);
1192 if (YUV_CHROM_SCALER(type) == YUV_LUM_SCALER(type)) 1192 if (YUV_CHROM_SCALER(type) == YUV_LUM_SCALER(type))
1193 memcpy(chrom_scale_texs, lum_scale_texs, sizeof(chrom_scale_texs)); 1193 memcpy(chrom_scale_texs, lum_scale_texs, sizeof(chrom_scale_texs));
1194 else 1194 else
1195 create_scaler_textures(YUV_CHROM_SCALER(type), &cur_texu, chrom_scale_texs); 1195 create_scaler_textures(YUV_CHROM_SCALER(type), &cur_texu, chrom_scale_texs);
1196 glGetIntegerv(GL_MAX_TEXTURE_UNITS, &i); 1196 glGetIntegerv(GL_MAX_TEXTURE_IMAGE_UNITS, &i);
1197 if (i < cur_texu) 1197 if (i < cur_texu)
1198 mp_msg(MSGT_VO, MSGL_ERR, 1198 mp_msg(MSGT_VO, MSGL_ERR,
1199 "[gl] %i texture units needed for this type of YUV fragment support (found %i)\n", 1199 "[gl] %i texture units needed for this type of YUV fragment support (found %i)\n",
1200 cur_texu, i); 1200 cur_texu, i);
1201 if (!ProgramString) { 1201 if (!ProgramString) {