diff options
author | Ian Romanick <[email protected]> | 2008-10-01 15:51:56 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2008-10-01 20:38:10 -0700 |
commit | 4741dbcbbc2514de370a760f4b78a17491014555 (patch) | |
tree | edbc0a4d5585fd42da49f7d832173ec41508ec3b /src/mesa/main/texformat.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/texformat.c')
-rw-r--r-- | src/mesa/main/texformat.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mesa/main/texformat.c b/src/mesa/main/texformat.c index d4ccdf9fa06..4442ce39a44 100644 --- a/src/mesa/main/texformat.c +++ b/src/mesa/main/texformat.c @@ -1420,14 +1420,13 @@ _mesa_choose_tex_format( GLcontext *ctx, GLint internalFormat, ; /* fallthrough */ } - if (ctx->Extensions.SGIX_depth_texture || - ctx->Extensions.ARB_depth_texture) { + if (ctx->Extensions.ARB_depth_texture) { switch (internalFormat) { case GL_DEPTH_COMPONENT: - case GL_DEPTH_COMPONENT24_SGIX: - case GL_DEPTH_COMPONENT32_SGIX: + case GL_DEPTH_COMPONENT24: + case GL_DEPTH_COMPONENT32: return &_mesa_texformat_z32; - case GL_DEPTH_COMPONENT16_SGIX: + case GL_DEPTH_COMPONENT16: return &_mesa_texformat_z16; default: ; /* fallthrough */ |