<p dir="ltr">Hi Erik,<br>
Thanks for your feedback.<br>
Can you suggest a better subject? <br>
After some thinking, should I cast gl_buffer_index before calling the function?<br>
Thanks<br>
Francesco</p>
<div class="gmail_quote">Il 17 giu 2016 12:39, "Erik Faye-Lund" <<a href="mailto:kusmabite@gmail.com">kusmabite@gmail.com</a>> ha scritto:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Now the subject no longer makes any sense.<br>
<br>
On Thu, Jun 16, 2016 at 7:02 AM, <<a href="mailto:francians@gmail.com">francians@gmail.com</a>> wrote:<br>
> From: Francesco Ansanelli <<a href="mailto:francians@gmail.com">francians@gmail.com</a>><br>
><br>
> ---<br>
> src/mesa/state_tracker/st_cb_fbo.c | 2 +-<br>
> 1 file changed, 1 insertion(+), 1 deletion(-)<br>
><br>
> diff --git a/src/mesa/state_tracker/st_cb_fbo.c b/src/mesa/state_tracker/st_cb_fbo.c<br>
> index a53b95a..950ec3e 100644<br>
> --- a/src/mesa/state_tracker/st_cb_fbo.c<br>
> +++ b/src/mesa/state_tracker/st_cb_fbo.c<br>
> @@ -704,7 +704,7 @@ st_DrawBuffers(struct gl_context *ctx, GLsizei count, const GLenum *buffers)<br>
><br>
> /* add the renderbuffers on demand */<br>
> for (i = 0; i < fb->_NumColorDrawBuffers; i++) {<br>
> - gl_buffer_index idx = fb->_ColorDrawBufferIndexes[i];<br>
> + GLint idx = fb->_ColorDrawBufferIndexes[i];<br>
><br>
> if (idx >= 0) {<br>
> st_manager_add_color_renderbuffer(st, fb, idx);<br>
> --<br>
> 1.7.9.5<br>
><br>
> _______________________________________________<br>
> mesa-dev mailing list<br>
> <a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</blockquote></div>