diff options
author | Brian Paul <[email protected]> | 2005-09-08 15:28:45 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2005-09-08 15:28:45 +0000 |
commit | 4618a9bfc2cd57c47ddf3590782c751ec194d362 (patch) | |
tree | d3c67875641645d05620b4c942cd551078aa06c1 /src/mesa/main/texstate.c | |
parent | f36954ec3c25b673fc275877938e2dea48ec5682 (diff) |
check for either GL_ARB_depth_texture or GL_SGIX_depth_texture in a few places
Diffstat (limited to 'src/mesa/main/texstate.c')
-rw-r--r-- | src/mesa/main/texstate.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c index 1fe11425b49..cf17a6b1e72 100644 --- a/src/mesa/main/texstate.c +++ b/src/mesa/main/texstate.c @@ -1,6 +1,6 @@ /* * Mesa 3-D graphics library - * Version: 6.3 + * Version: 6.5 * * Copyright (C) 1999-2005 Brian Paul All Rights Reserved. * @@ -1771,10 +1771,8 @@ _mesa_GetTexLevelParameteriv( GLenum target, GLint level, *params = 0; return; case GL_DEPTH_BITS: - /* XXX this isn't in the GL_SGIX_depth_texture spec - * but seems appropriate. - */ - if (ctx->Extensions.SGIX_depth_texture) + if (ctx->Extensions.SGIX_depth_texture || + ctx->Extensions.ARB_depth_texture) *params = img->TexFormat->DepthBits; else _mesa_error(ctx, GL_INVALID_ENUM, |