mesa: Allow NULL read/draw in complete FBOs in ARB_ES2_compatibility.
authorEric Anholt <eric@anholt.net>
Wed, 25 May 2011 20:51:26 +0000 (13:51 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 26 May 2011 15:54:29 +0000 (08:54 -0700)
commitd3451f7f9c095204105259bb989428709fc1fdf0
treedfff5c213c4ac1d27a69edb9453a6a6f176b25ce
parentf73ff463a2175039c5a54a9a15d65a9a2d1fae25
mesa: Allow NULL read/draw in complete FBOs in ARB_ES2_compatibility.

From the ARB_ES2_compatibility spec:

    "(8) How should we handle draw buffer completeness?

    RESOLVED: Remove draw/readbuffer completeness checks, and treat
    drawbuffers referring to missing attachments as if they were NONE."

Fixes arb_es2_compatibility-drawbuffers when the short-circuit for
ARB_ES2_compatibility in the previous commit is dropped.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/fbobject.c