From: Matthew Waters Date: Tue, 19 Aug 2014 04:43:42 +0000 (+1000) Subject: glvideomixer: get the attribute from the correct shader X-Git-Tag: 1.16.2~260^2~347 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3fe5412357961ade288ca3f866997391e30d6004;p=platform%2Fupstream%2Fgst-plugins-base.git glvideomixer: get the attribute from the correct shader --- diff --git a/ext/gl/gstglvideomixer.c b/ext/gl/gstglvideomixer.c index 18b7b20..b62cfd7 100644 --- a/ext/gl/gstglvideomixer.c +++ b/ext/gl/gstglvideomixer.c @@ -494,9 +494,6 @@ _draw_checker_background (GstGLVideoMixer * video_mixer) }; /* *INDENT-ON* */ - attr_position_loc = - gst_gl_shader_get_attribute_location (video_mixer->shader, "a_position"); - if (!video_mixer->checker) { if (!gst_gl_context_gen_shader (mixer->context, checker_v_src, checker_f_src, &video_mixer->checker)) @@ -504,6 +501,8 @@ _draw_checker_background (GstGLVideoMixer * video_mixer) } gst_gl_shader_use (video_mixer->checker); + attr_position_loc = + gst_gl_shader_get_attribute_location (video_mixer->checker, "a_position"); gl->VertexAttribPointer (attr_position_loc, 3, GL_FLOAT, GL_FALSE, 3 * sizeof (GLfloat), &v_vertices[0]);