From: Brian Paul Date: Mon, 29 Jun 2009 21:12:36 +0000 (-0600) Subject: mesa: check for ARB_framebuffer_object for GL_TEXTURE_STENCIL_SIZE_EXT query X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f44638fa613b48e8d6551ebcb127336b932ba6c8;p=mesa.git mesa: check for ARB_framebuffer_object for GL_TEXTURE_STENCIL_SIZE_EXT query --- diff --git a/src/mesa/main/texparam.c b/src/mesa/main/texparam.c index 2195a334d3e..d27c59381c5 100644 --- a/src/mesa/main/texparam.c +++ b/src/mesa/main/texparam.c @@ -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 {