mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-16 11:15:31 +00:00
[232/906] use texture1 for curve textures
This commit is contained in:
parent
d2cc6f2226
commit
3f3c0e298f
2 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue