mesa: fix incorrect GL_DEPTH_STENCIL_ATTACHMENT format check
authorBrian Paul <brianp@vmware.com>
Thu, 27 May 2010 19:05:23 +0000 (13:05 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 27 May 2010 19:11:08 +0000 (13:11 -0600)
commita504f2387e2bb47025c7406d9a466a042dc09e61
tree883de60f2b5baadd4f5ef8d27237ccc5c7c4e18e
parent90e5a37d128efaca9e89434ab103826ee82cb911
mesa: fix incorrect GL_DEPTH_STENCIL_ATTACHMENT format check

We want to check the incoming renderbuffer format, not the (potentially
non-existant) current attachment.

Fixes segfault w/ fbotexture -ds2.

NOTE: this will be applied to the 7.8 branch too.
src/mesa/main/fbobject.c