diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2008-10-01 15:51:56 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2008-10-01 20:38:10 -0700 |
commit | 4741dbcbbc2514de370a760f4b78a17491014555 (patch) | |
tree | edbc0a4d5585fd42da49f7d832173ec41508ec3b /src/mesa/main/texparam.c | |
parent | 17fdd1ab3b48da8dff742e626c3c59bc89cafeed (diff) |
Unify ARB_depth_texture and SGIX_depth_texture
The ARB extension is a superset of the older SGIX extension. Any
hardware that can support the SGIX version can also support the ARB
version. In Mesa, any driver that supports one also supports the
other. This unification just simplifies some bits of code.
Diffstat (limited to 'src/mesa/main/texparam.c')
-rw-r--r-- | src/mesa/main/texparam.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/main/texparam.c b/src/mesa/main/texparam.c index acddb6663b..a9e752a637 100644 --- a/src/mesa/main/texparam.c +++ b/src/mesa/main/texparam.c @@ -642,8 +642,7 @@ _mesa_GetTexLevelParameteriv( GLenum target, GLint level, *params = 0; break; case GL_TEXTURE_DEPTH_SIZE_ARB: - if (ctx->Extensions.SGIX_depth_texture || - ctx->Extensions.ARB_depth_texture) + if (ctx->Extensions.ARB_depth_texture) *params = img->TexFormat->DepthBits; else _mesa_error(ctx, GL_INVALID_ENUM, |