mesa: Accept GL_DEPTH and GL_STENCIL for window system FBO only
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 3 Oct 2011 19:02:18 +0000 (12:02 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 11 Oct 2011 16:00:54 +0000 (09:00 -0700)
commita8328cc132e9edd55141e8e7822909a85bda12d6
treeca35e82ee4bc21a1e7bf114b3568e0ed34a8d9fc
parentb875838ec302c4e830e13ebd5fa834fd22830279
mesa: Accept GL_DEPTH and GL_STENCIL for window system FBO only

Previously GL_DEPTH_BUFFER and GL_STENCIL_BUFFER were (incorrectly)
allowed for both.  Those enums don't even really exist!  Now GL_DEPTH
and GL_STENCIL are only allowed for the window system FBO.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/mesa/main/fbobject.c