mesa: Generate FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT earlier
authorChris Forbes <chrisf@ijw.co.nz>
Sun, 23 Mar 2014 09:41:28 +0000 (22:41 +1300)
committerChris Forbes <chrisf@ijw.co.nz>
Mon, 24 Mar 2014 17:49:25 +0000 (06:49 +1300)
commita419a1c5654ac4a4a46ec3a80d75926e26919c99
tree87833587b3d6e3a6932877338487c25d0c55b501
parent40d7b5195351d3e4199e7a840615a595a6dbaefc
mesa: Generate FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT earlier

The ARB_framebuffer_object spec lists this case before the
FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER and
FRAMEBUFFER_INCOMPLETE_READ_BUFFER cases.

Fixes two broken cases in piglit's fbo-incomplete test, if
ARB_ES2_compatibility is not advertised. (If it is, this is masked
because the FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER /
FRAMEBUFFER_INCOMPLETE_READ_BUFFER cases are removed by that extension)

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/fbobject.c