From 45c0df9bcb10f7ba25039fa65f8575adf18f3301 Mon Sep 17 00:00:00 2001 From: reimar Date: Tue, 15 Jan 2008 18:14:00 +0000 Subject: Create/allocate conversion textures before scaler textures. Allows overriding gamma ramp texture also when using a non-trivial scaler. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25758 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/gl_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libvo') diff --git a/libvo/gl_common.c b/libvo/gl_common.c index 4117d6de9f..5690b8a94c 100644 --- a/libvo/gl_common.c +++ b/libvo/gl_common.c @@ -1160,13 +1160,13 @@ static void glSetupYUVFragprog(float brightness, float contrast, float ry, ru, rv, rc; float gy, gu, gv, gc; float by, bu, bv, bc; + create_conv_textures(YUV_CONVERSION(type), &cur_texu, conv_texs, + brightness, contrast, uvcos, uvsin, rgamma, ggamma, bgamma); create_scaler_textures(YUV_LUM_SCALER(type), &cur_texu, lum_scale_texs); if (YUV_CHROM_SCALER(type) == YUV_LUM_SCALER(type)) memcpy(chrom_scale_texs, lum_scale_texs, sizeof(chrom_scale_texs)); else create_scaler_textures(YUV_CHROM_SCALER(type), &cur_texu, chrom_scale_texs); - create_conv_textures(YUV_CONVERSION(type), &cur_texu, conv_texs, - brightness, contrast, uvcos, uvsin, rgamma, ggamma, bgamma); glGetIntegerv(GL_MAX_TEXTURE_UNITS, &i); if (i < cur_texu) mp_msg(MSGT_VO, MSGL_ERR, -- cgit v1.2.3