[232/906] use texture1 for curve textures

This commit is contained in:
Filippo Argiolas 2008-09-21 10:04:49 +02:00 committed by Matthew Waters
parent d2cc6f2226
commit 3f3c0e298f
2 changed files with 4 additions and 4 deletions

View file

@ -71,11 +71,11 @@ static void gst_gl_effects_luma_to_curve (GstGLEffects *effects,
glDisable (GL_TEXTURE_RECTANGLE_ARB);
glActiveTexture (GL_TEXTURE5);
glActiveTexture (GL_TEXTURE1);
glEnable (GL_TEXTURE_1D);
glBindTexture (GL_TEXTURE_1D, effects->curve[curve_index]);
gst_gl_shader_set_uniform_1i (shader, "curve", 5);
gst_gl_shader_set_uniform_1i (shader, "curve", 1);
glDisable (GL_TEXTURE_1D);

View file

@ -71,11 +71,11 @@ static void gst_gl_effects_rgb_to_curve (GstGLEffects *effects,
glDisable (GL_TEXTURE_RECTANGLE_ARB);
glActiveTexture (GL_TEXTURE5);
glActiveTexture (GL_TEXTURE1);
glEnable (GL_TEXTURE_1D);
glBindTexture (GL_TEXTURE_1D, effects->curve[curve_index]);
gst_gl_shader_set_uniform_1i (shader, "curve", 5);
gst_gl_shader_set_uniform_1i (shader, "curve", 1);
glDisable (GL_TEXTURE_1D);