summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/savage
diff options
context:
space:
mode:
authorFelix Kuehling <[email protected]>2004-02-26 13:22:16 +0000
committerFelix Kuehling <[email protected]>2004-02-26 13:22:16 +0000
commit89d04e4623635d07cde447f97dd35495a754e9db (patch)
tree71833d43f5468fddb60caf4090619666342321da /src/mesa/drivers/dri/savage
parent76283a9079846e8b31c03719774b7d2e24832e48 (diff)
Set ctx->Const.MaxTexture[Image/Coord]Units correctly. Fixes corruption in q3.
Diffstat (limited to 'src/mesa/drivers/dri/savage')
-rw-r--r--src/mesa/drivers/dri/savage/savage_xmesa.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/savage/savage_xmesa.c b/src/mesa/drivers/dri/savage/savage_xmesa.c
index 990689cfc96..ced25de76d7 100644
--- a/src/mesa/drivers/dri/savage/savage_xmesa.c
+++ b/src/mesa/drivers/dri/savage/savage_xmesa.c
@@ -273,6 +273,8 @@ savageCreateContext( const __GLcontextModes *mesaVis,
ctx->Const.MaxTextureUnits = 2;
else
ctx->Const.MaxTextureUnits = 1;
+ ctx->Const.MaxTextureImageUnits = ctx->Const.MaxTextureUnits;
+ ctx->Const.MaxTextureCoordUnits = ctx->Const.MaxTextureUnits;
#if 0
ctx->Const.MinLineWidth = 1.0;