From 89d04e4623635d07cde447f97dd35495a754e9db Mon Sep 17 00:00:00 2001 From: Felix Kuehling Date: Thu, 26 Feb 2004 13:22:16 +0000 Subject: Set ctx->Const.MaxTexture[Image/Coord]Units correctly. Fixes corruption in q3. --- src/mesa/drivers/dri/savage/savage_xmesa.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- cgit v1.2.3