mesa: check for ARB_framebuffer_object for GL_TEXTURE_STENCIL_SIZE_EXT query
authorBrian Paul <brianp@vmware.com>
Mon, 29 Jun 2009 21:12:36 +0000 (15:12 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 29 Jun 2009 21:27:28 +0000 (15:27 -0600)
src/mesa/main/texparam.c

index 2195a334d3ea9fa69dcd4c974d5f5e6b2b5b21bf..d27c59381c563eee91846ab24817ffdd408bee5b 100644 (file)
@@ -882,7 +882,8 @@ _mesa_GetTexLevelParameteriv( GLenum target, GLint level,
                         "glGetTexLevelParameter[if]v(pname)");
          break;
       case GL_TEXTURE_STENCIL_SIZE_EXT:
-         if (ctx->Extensions.EXT_packed_depth_stencil) {
+         if (ctx->Extensions.EXT_packed_depth_stencil ||
+             ctx->Extensions.ARB_framebuffer_object) {
             *params = img->TexFormat->StencilBits;
          }
          else {