summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-06-29 15:12:36 -0600
committerBrian Paul <[email protected]>2009-06-29 15:27:28 -0600
commitf44638fa613b48e8d6551ebcb127336b932ba6c8 (patch)
tree3983a877b2e96ec682f91dfe8bba6b4ebb87c1fd /src
parentcb0ea416bda30a7f7bced78e1edde806fbcb7577 (diff)
mesa: check for ARB_framebuffer_object for GL_TEXTURE_STENCIL_SIZE_EXT query
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/texparam.c3
1 files changed, 2 insertions, 1 deletions
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 {