mesa: fix num_draw_buffers==0 in fixed-function fragment program generation
authorBrian Paul <brianp@vmware.com>
Thu, 13 Jan 2011 00:32:00 +0000 (17:32 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 13 Jan 2011 00:55:45 +0000 (17:55 -0700)
commit2fa6012f6a0b02de6093cbccba3bf4432f072e57
treef3cc02bb281cef2d1e56fe73ab8920e39470635c
parent30616fdacfd3e2d8d3df64e4aa6b4cac405f3cf0
mesa: fix num_draw_buffers==0 in fixed-function fragment program generation

This fixes a problem when glDrawBuffers(GL_NONE).  The fragment program
was writing to color output[0] but OutputsWritten was 0.  That led to a
failed assertion in the Mesa->TGSI translation code.

NOTE: This is a candidate for the 7.9 and 7.10 branches.
src/mesa/main/texenvprogram.c