summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2000-03-07 17:11:29 +0000
committerBrian Paul <[email protected]>2000-03-07 17:11:29 +0000
commitb3f16c43508e2875d755e41aba0cd31e3d076d02 (patch)
tree1ce3b0424f74721d1ef4a74baa4565eaf1dacc64 /src/mesa/main
parente02ffc1226bdc741eed43e528ec0f0366c987fcc (diff)
added target parameter to Driver.TexEnv()
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/dd.h8
-rw-r--r--src/mesa/main/texstate.c4
2 files changed, 5 insertions, 7 deletions
diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h
index 73665425123..78397c46432 100644
--- a/src/mesa/main/dd.h
+++ b/src/mesa/main/dd.h
@@ -1,4 +1,4 @@
-/* $Id: dd.h,v 1.15 2000/03/03 18:55:45 brianp Exp $ */
+/* $Id: dd.h,v 1.16 2000/03/07 17:11:29 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -564,12 +564,10 @@ struct dd_function_table {
*** Texture mapping functions:
***/
- void (*TexEnv)( GLcontext *ctx, GLenum pname, const GLfloat *param );
+ void (*TexEnv)( GLcontext *ctx, GLenum target, GLenum pname,
+ const GLfloat *param );
/*
* Called whenever glTexEnv*() is called.
- * Pname will be one of GL_TEXTURE_ENV_MODE or GL_TEXTURE_ENV_COLOR.
- * If pname is GL_TEXTURE_ENV_MODE then param will be one
- * of GL_MODULATE, GL_BLEND, GL_DECAL, or GL_REPLACE.
*/
void (*TexImage)( GLcontext *ctx, GLenum target,
diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c
index 8604c445112..e5f901255b4 100644
--- a/src/mesa/main/texstate.c
+++ b/src/mesa/main/texstate.c
@@ -1,4 +1,4 @@
-/* $Id: texstate.c,v 1.7 2000/02/08 01:45:22 brianp Exp $ */
+/* $Id: texstate.c,v 1.8 2000/03/07 17:11:29 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -125,7 +125,7 @@ _mesa_TexEnvfv( GLenum target, GLenum pname, const GLfloat *param )
/* Tell device driver about the new texture environment */
if (ctx->Driver.TexEnv) {
- (*ctx->Driver.TexEnv)( ctx, pname, param );
+ (*ctx->Driver.TexEnv)( ctx, target, pname, param );
}
}