mesa: return GL_FRAMEBUFFER_DEFAULT as FBO attachment type
authorBrian Paul <brianp@vmware.com>
Fri, 3 Dec 2010 15:30:41 +0000 (08:30 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 3 Dec 2010 15:32:29 +0000 (08:32 -0700)
commit6d13ec7dc082aea9a8ce04dd8e045e77e5921d8a
treebb6021bb0c7697a720d057ee3d7561ed7ed84f2d
parent20cf1851d82d6135b92c20323266156eb6ad5ffe
mesa: return GL_FRAMEBUFFER_DEFAULT as FBO attachment type

If querying the default/window-system FBO's attachment type, return
GL_FRAMEBUFFER_DEFAULT (per the GL_ARB_framebuffer_object spec).

See http://bugs.freedesktop.org/show_bug.cgi?id=31947

NOTE: This is a candidate for the 7.9 branch.
src/mesa/main/fbobject.c