main: check texture target when validating layered framebuffers.
authorPaul Berry <stereotype441@gmail.com>
Wed, 20 Nov 2013 03:01:37 +0000 (19:01 -0800)
committerPaul Berry <stereotype441@gmail.com>
Fri, 10 Jan 2014 13:58:46 +0000 (05:58 -0800)
commit28af1dc21772d0b7819dff6080484c67114dc0d1
tree6c421ebfe9399386d821f535e0e110e2686bd74c
parent90368875e733171350c64c8dda52f81bd0705dd0
main: check texture target when validating layered framebuffers.

From section 4.4.4 (Framebuffer Completeness) of the GL 3.2 spec:

    If any framebuffer attachment is layered, all populated
    attachments must be layered. Additionally, all populated color
    attachments must be from textures of the same target.

We weren't checking that the attachments were from textures of the
same target.

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
src/mesa/main/fbobject.c