On 7 November 2011 17:34, Marek Olšák <span dir="ltr"><<a href="mailto:maraeo@gmail.com">maraeo@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="HOEnZb"><div class="h5">On Tue, Nov 8, 2011 at 1:13 AM, Paul Berry <<a href="mailto:stereotype441@gmail.com">stereotype441@gmail.com</a>> wrote:<br>
> +/**<br>
> + * Update gl_transform_feedback_info to reflect this tfeedback_decl.<br>
> + *<br>
> + * If an error occurs, the error is reported through linker_error() and false<br>
> + * is returned.<br>
> + */<br>
> +bool<br>
> +tfeedback_decl::store(struct gl_shader_program *prog,<br>
> + struct gl_transform_feedback_info *info,<br>
> + unsigned buffer) const<br>
> +{<br>
> + if (!this->is_assigned()) {<br>
> + /* From GL_EXT_transform_feedback:<br>
> + * A program will fail to link if:<br>
> + *<br>
> + * * any variable name specified in the <varyings> array is not<br>
> + * declared as an output in the geometry shader (if present) or<br>
> + * the vertex shader (if no geometry shader is present);<br>
> + */<br>
> + linker_error(prog, "Transform feedback varying %s undeclared.",<br>
> + this->orig_name);<br>
> + return false;<br>
> + }<br>
> + for (unsigned v = 0; v < this->vector_elements; ++v) {<br>
<br>
</div></div>I think the number of iterations should be this->matrix_columns, not<br>
this->vector_elements.<br></blockquote><div><br>You're absolutely right. I'll fix this.<br></div></div>