On 23 September 2011 01:48, Eric Anholt <e...@anholt.net> wrote:
> In the case of n == 1 with more than one bit set, doesn't this stomp the
> _ColorDrawBufferIndexes[] we just calculated between n and
> _NumColorDrawBuffers - 1?  Looks like splitting that loop into two would
> work well.
>
You're right, how about something like the attached patch? Strictly
speaking the start index for the first loop should be MAX2(n,
fb->_NumColorDrawBuffers), though I'm not sure that's worth it.

Attachment: 0001-mesa-Also-set-the-remaining-draw-buffers-to-GL_NONE-.patch
Description: application/pgp-keys

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to