summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2000-06-27 23:38:45 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2000-06-27 23:38:45 +0000
commit904ecb2355978fb5bf709d287e82c9a8c6aeeca2 (patch)
tree126bf2ea02ae30ef3741cdd22eade3cdf62c1bf2
parent2d8db39301349f67e17fc1b21e5d33d5f44cd521 (diff)
initialize TextureStack matrices
-rw-r--r--src/mesa/main/context.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index eb9ed313bfd..ccb7cc00a46 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -1,4 +1,4 @@
-/* $Id: context.c,v 1.73 2000/06/27 22:10:00 brianp Exp $ */
+/* $Id: context.c,v 1.74 2000/06/27 23:38:45 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -780,10 +780,11 @@ init_attrib_groups( GLcontext *ctx )
}
/* Texture matrix */
- for (i=0; i<MAX_TEXTURE_UNITS; i++) {
+ for (i = 0; i < MAX_TEXTURE_UNITS; i++) {
gl_matrix_ctr( &ctx->TextureMatrix[i] );
ctx->TextureStackDepth[i] = 0;
for (j = 0; j < MAX_TEXTURE_STACK_DEPTH - 1; j++) {
+ gl_matrix_ctr( &ctx->TextureStack[i][j] );
ctx->TextureStack[i][j].inv = 0;
}
}