diff options
author | Brian Paul <[email protected]> | 2001-10-17 13:31:07 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2001-10-17 13:31:07 +0000 |
commit | e11f089f821ea90754d8cbe56278eba4cf5665f4 (patch) | |
tree | a4a6e49a2fc7f250328ccfdf7bd62ce4be9b3e65 /src/mesa/main/texstate.c | |
parent | 470d3cd4a2c49a36babfc66933140d57535d724f (diff) |
added GL_ARB_texture_mirrored_repeat
Diffstat (limited to 'src/mesa/main/texstate.c')
-rw-r--r-- | src/mesa/main/texstate.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c index 0205d30fdd9..f2f02116066 100644 --- a/src/mesa/main/texstate.c +++ b/src/mesa/main/texstate.c @@ -1,4 +1,4 @@ -/* $Id: texstate.c,v 1.57 2001/09/18 23:06:14 kschultz Exp $ */ +/* $Id: texstate.c,v 1.58 2001/10/17 13:31:07 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -140,16 +140,10 @@ _mesa_TexEnvfv( GLenum target, GLenum pname, const GLfloat *param ) return; } break; - case GL_DOT3_RGB_EXT: - case GL_DOT3_RGBA_EXT: - if (!ctx->Extensions.EXT_texture_env_dot3) { - TE_ERROR(GL_INVALID_ENUM, "glTexEnv(param=%s)", mode); - return; - } - break; case GL_DOT3_RGB_ARB: case GL_DOT3_RGBA_ARB: - if (!ctx->Extensions.ARB_texture_env_dot3) { + if (!ctx->Extensions.EXT_texture_env_dot3 && + !ctx->Extensions.ARB_texture_env_dot3) { TE_ERROR(GL_INVALID_ENUM, "glTexEnv(param=%s)", mode); return; } @@ -929,7 +923,9 @@ _mesa_TexParameterfv( GLenum target, GLenum pname, const GLfloat *params ) eparam==GL_REPEAT || eparam==GL_CLAMP_TO_EDGE || (eparam == GL_CLAMP_TO_BORDER_ARB && - ctx->Extensions.ARB_texture_border_clamp)) { + ctx->Extensions.ARB_texture_border_clamp) || + (eparam == GL_MIRRORED_REPEAT_ARB && + ctx->Extensions.ARB_texture_mirrored_repeat)) { texObj->WrapS = eparam; } else { @@ -944,7 +940,9 @@ _mesa_TexParameterfv( GLenum target, GLenum pname, const GLfloat *params ) eparam==GL_REPEAT || eparam==GL_CLAMP_TO_EDGE || (eparam == GL_CLAMP_TO_BORDER_ARB && - ctx->Extensions.ARB_texture_border_clamp)) { + ctx->Extensions.ARB_texture_border_clamp) || + (eparam == GL_MIRRORED_REPEAT_ARB && + ctx->Extensions.ARB_texture_mirrored_repeat)) { texObj->WrapT = eparam; } else { @@ -959,7 +957,9 @@ _mesa_TexParameterfv( GLenum target, GLenum pname, const GLfloat *params ) eparam==GL_REPEAT || eparam==GL_CLAMP_TO_EDGE || (eparam == GL_CLAMP_TO_BORDER_ARB && - ctx->Extensions.ARB_texture_border_clamp)) { + ctx->Extensions.ARB_texture_border_clamp) || + (eparam == GL_MIRRORED_REPEAT_ARB && + ctx->Extensions.ARB_texture_mirrored_repeat)) { texObj->WrapR = eparam; } else { |