From c7a219ec6f6047b691a9bb32e55ec4a889ba2814 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 21 Oct 2002 15:52:34 +0000 Subject: GL_ATI_texture_mirror_once extension (Ian Romanick) --- src/mesa/main/texstate.c | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'src/mesa/main/texstate.c') diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c index 0da213404b..ce40c56f13 100644 --- a/src/mesa/main/texstate.c +++ b/src/mesa/main/texstate.c @@ -1,4 +1,4 @@ -/* $Id: texstate.c,v 1.81 2002/10/17 22:26:06 kschultz Exp $ */ +/* $Id: texstate.c,v 1.82 2002/10/21 15:52:34 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -1093,7 +1093,11 @@ _mesa_TexParameterfv( GLenum target, GLenum pname, const GLfloat *params ) else if (texObj->Target != GL_TEXTURE_RECTANGLE_NV && (eparam == GL_REPEAT || (eparam == GL_MIRRORED_REPEAT_ARB && - ctx->Extensions.ARB_texture_mirrored_repeat))) { + ctx->Extensions.ARB_texture_mirrored_repeat) || + (eparam == GL_MIRROR_CLAMP_ATI && + ctx->Extensions.ATI_texture_mirror_once) || + (eparam == GL_MIRROR_CLAMP_TO_EDGE_ATI && + ctx->Extensions.ATI_texture_mirror_once))) { /* non-rectangle texture */ FLUSH_VERTICES(ctx, _NEW_TEXTURE); texObj->WrapS = eparam; @@ -1116,7 +1120,11 @@ _mesa_TexParameterfv( GLenum target, GLenum pname, const GLfloat *params ) else if (texObj->Target != GL_TEXTURE_RECTANGLE_NV && (eparam == GL_REPEAT || (eparam == GL_MIRRORED_REPEAT_ARB && - ctx->Extensions.ARB_texture_mirrored_repeat))) { + ctx->Extensions.ARB_texture_mirrored_repeat) || + (eparam == GL_MIRROR_CLAMP_ATI && + ctx->Extensions.ATI_texture_mirror_once) || + (eparam == GL_MIRROR_CLAMP_TO_EDGE_ATI && + ctx->Extensions.ATI_texture_mirror_once))) { /* non-rectangle texture */ FLUSH_VERTICES(ctx, _NEW_TEXTURE); texObj->WrapT = eparam; @@ -1139,7 +1147,11 @@ _mesa_TexParameterfv( GLenum target, GLenum pname, const GLfloat *params ) else if (texObj->Target != GL_TEXTURE_RECTANGLE_NV && (eparam == GL_REPEAT || (eparam == GL_MIRRORED_REPEAT_ARB && - ctx->Extensions.ARB_texture_mirrored_repeat))) { + ctx->Extensions.ARB_texture_mirrored_repeat) || + (eparam == GL_MIRROR_CLAMP_ATI && + ctx->Extensions.ATI_texture_mirror_once) || + (eparam == GL_MIRROR_CLAMP_TO_EDGE_ATI && + ctx->Extensions.ATI_texture_mirror_once))) { /* non-rectangle texture */ FLUSH_VERTICES(ctx, _NEW_TEXTURE); texObj->WrapR = eparam; -- cgit v1.2.3