OSDN Git Service

mesa: Fix the cause of piglit test fbo-array failure
authorAnuj Phogat <anuj.phogat@gmail.com>
Mon, 12 Mar 2012 17:39:48 +0000 (10:39 -0700)
committerAnuj Phogat <anuj.phogat@gmail.com>
Mon, 12 Mar 2012 18:58:12 +0000 (11:58 -0700)
commitcc5b0ffae048824a6bdcaf43e0c8c2dd4a7ff14b
tree919ae4f83a31eb3bc297493165a5d5af4df57910
parent6830e6515c840ff98a2ee5eb61e33dd5fb4d1ee2
mesa: Fix the cause of piglit test fbo-array failure

Handle the special case of glFramebufferTextureLayer() for which we pass
teximage = 0 internally in framebuffer_texture(). This patch makes failing
piglit test fbo-array, fbo-depth-array to pass.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=47126

V4: Removed the duplicated code.
Note: This is a candidate for the stable branches.

Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/fbobject.c