mesa: Don't error on glFeedbackBuffer(size = 0, buffer = NULL)
authorEric Anholt <eric@anholt.net>
Tue, 28 Jun 2011 23:39:15 +0000 (16:39 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 6 Jul 2011 18:17:20 +0000 (11:17 -0700)
commit07e5295b6fe77253ea38dbc0d649b20e7275373a
treefa51c3cfc7d339ff23eb4aaefeea7236e47fe806
parentc9aac11713c6238a8e3a89e8501e6e686fa811a7
mesa: Don't error on glFeedbackBuffer(size = 0, buffer = NULL)

The existing error result doesn't appear in the GL 2.1 or 3.2
compatibility specs, and triggers an unexpected GL error in Intel's
oglconform when it tries to reset the feedback state after usage so
that the "diff the state at error time vs. context init time" code
doesn't generate spurious diffs.  The unexpected GL error then
translates into testcase failure.  Brian wants the safety check on
buffer = NULL, though, so that people can't as easily set up a broken
buffer.
src/mesa/main/feedback.c