projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed96f46
)
update CurrentStack in glActiveTexture if needed (bug 669080)
author
Brian Paul
<brian.paul@tungstengraphics.com>
Thu, 16 Jan 2003 15:22:13 +0000
(15:22 +0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Thu, 16 Jan 2003 15:22:13 +0000
(15:22 +0000)
src/mesa/main/texstate.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/texstate.c
b/src/mesa/main/texstate.c
index d234b176813946cc82e46dc84b27f4b63788f59c..b511b1a8d366dec2576efcef96b6c87438693d93 100644
(file)
--- a/
src/mesa/main/texstate.c
+++ b/
src/mesa/main/texstate.c
@@
-1,4
+1,4
@@
-/* $Id: texstate.c,v 1.9
0 2002/12/30 19:24:05 alanh
Exp $ */
+/* $Id: texstate.c,v 1.9
1 2003/01/16 15:22:13 brianp
Exp $ */
/*
* Mesa 3-D graphics library
@@
-2434,7
+2434,13
@@
_mesa_ActiveTextureARB( GLenum target )
}
FLUSH_VERTICES(ctx, _NEW_TEXTURE);
+
ctx->Texture.CurrentUnit = texUnit;
+ if (ctx->Transform.MatrixMode == GL_TEXTURE) {
+ /* update current stack pointer */
+ ctx->CurrentStack = &ctx->TextureMatrixStack[texUnit];
+ }
+
if (ctx->Driver.ActiveTexture) {
(*ctx->Driver.ActiveTexture)( ctx, (GLuint) texUnit );
}