[Mesa-dev] [PATCH 1/1] mesa: Call updated_drawbuffers() if the buffer count changes in _mesa_drawbuffers().

Eric Anholt eric at anholt.net
Mon Jul 25 19:29:48 PDT 2011


On Tue, 26 Jul 2011 01:30:44 +0200, Henri Verbeet <hverbeet at gmail.com> wrote:
> On 26 July 2011 01:02, Eric Anholt <eric at anholt.net> wrote:
> > I don't see that, because the while (buf < MaxDrawBuffers) loop would
> > notice the change from COLOR1 -> NONE.
> That loop doesn't happen because n == 1 for {COLOR0} (as opposed to
> {COLOR0, NONE}). Perhaps we should always explicitly set any remaining
> buffers to NONE though.

Ah, I see.  I like this better than setting remaining buffers to NONE.
(and with this patch, we could avoid doing so, right?).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20110725/523f76de/attachment.pgp>


More information about the mesa-dev mailing list