mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 02:15:31 +00:00
[227/906] explicitly bind the main texture and the curve one to separate units in rgb and luma to curve effects. This should solve the issue pointed in TODO item 21.
This commit is contained in:
parent
e8abbdaaa7
commit
43e92c4a3f
2 changed files with 19 additions and 3 deletions
|
@ -63,6 +63,14 @@ static void gst_gl_effects_luma_to_curve (GstGLEffects *effects,
|
|||
glDisable(GL_TEXTURE_1D);
|
||||
}
|
||||
|
||||
glActiveTexture (GL_TEXTURE0);
|
||||
glEnable (GL_TEXTURE_RECTANGLE_ARB);
|
||||
glBindTexture (GL_TEXTURE_RECTANGLE_ARB, texture);
|
||||
|
||||
gst_gl_shader_set_uniform_1i (shader, "tex", 0);
|
||||
|
||||
glDisable (GL_TEXTURE_RECTANGLE_ARB);
|
||||
|
||||
glActiveTexture (GL_TEXTURE5);
|
||||
glEnable (GL_TEXTURE_1D);
|
||||
glBindTexture (GL_TEXTURE_1D, effects->curve[curve_index]);
|
||||
|
|
|
@ -63,6 +63,14 @@ static void gst_gl_effects_rgb_to_curve (GstGLEffects *effects,
|
|||
glDisable(GL_TEXTURE_1D);
|
||||
}
|
||||
|
||||
glActiveTexture (GL_TEXTURE0);
|
||||
glEnable (GL_TEXTURE_RECTANGLE_ARB);
|
||||
glBindTexture (GL_TEXTURE_RECTANGLE_ARB, texture);
|
||||
|
||||
gst_gl_shader_set_uniform_1i (shader, "tex", 0);
|
||||
|
||||
glDisable (GL_TEXTURE_RECTANGLE_ARB);
|
||||
|
||||
glActiveTexture (GL_TEXTURE5);
|
||||
glEnable (GL_TEXTURE_1D);
|
||||
glBindTexture (GL_TEXTURE_1D, effects->curve[curve_index]);
|
||||
|
|
Loading…
Reference in a new issue