mesa: Make renderbuffer FBO attachments not layered
authorJames Legg <lankyleggy@gmail.com>
Sat, 7 Feb 2015 23:33:15 +0000 (23:33 +0000)
committerChris Forbes <chrisf@ijw.co.nz>
Sun, 8 Feb 2015 00:54:15 +0000 (13:54 +1300)
commit1581e12aba3712fe4884586c7be6087b0a4a0041
tree2bc0d662c5311803aad349ca892efc9b0a525332
parent49299ef6fa0cf88e7101512400a4e74efa300941
mesa: Make renderbuffer FBO attachments not layered

For framebuffer completeness checks, consider renderbuffers as not
layered. Previously, they would have counted as layered if a layered
textured had previously been bound to the same attachment point. This
could cause framebuffer completeness checks to incorrectly fail with
GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS, even if no layered attachments
were present.

Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89026
src/mesa/main/fbobject.c