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/teximage.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/teximage.c')
-rw-r--r-- | src/mesa/main/teximage.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index b5d2d266b00..d4d023acda3 100644 --- a/src/mesa/main/teximage.c +++ b/src/mesa/main/teximage.c @@ -1,6 +1,6 @@ /* * Mesa 3-D graphics library - * Version: 6.3 + * Version: 6.5 * * Copyright (C) 1999-2004 Brian Paul All Rights Reserved. * @@ -242,7 +242,8 @@ _mesa_base_tex_format( GLcontext *ctx, GLint internalFormat ) } } - if (ctx->Extensions.SGIX_depth_texture) { + if (ctx->Extensions.SGIX_depth_texture || + ctx->Extensions.ARB_depth_texture) { switch (internalFormat) { case GL_DEPTH_COMPONENT: case GL_DEPTH_COMPONENT16_SGIX: @@ -1982,7 +1983,8 @@ _mesa_GetTexImage( GLenum target, GLint level, GLenum format, _mesa_error(ctx, GL_INVALID_ENUM, "glGetTexImage(format)"); } - if (!ctx->Extensions.SGIX_depth_texture && is_depth_format(format)) { + if (!ctx->Extensions.SGIX_depth_texture && + !ctx->Extensions.ARB_depth_texture && is_depth_format(format)) { _mesa_error(ctx, GL_INVALID_ENUM, "glGetTexImage(format)"); } |