Set ctx->Const.MaxTexture[Image/Coord]Units correctly. Fixes corruption in q3.
authorFelix Kuehling <fxkuehl@gmx.de>
Thu, 26 Feb 2004 13:22:16 +0000 (13:22 +0000)
committerFelix Kuehling <fxkuehl@gmx.de>
Thu, 26 Feb 2004 13:22:16 +0000 (13:22 +0000)
src/mesa/drivers/dri/savage/savage_xmesa.c

index 990689cfc9687548ca52fd8e9ef188a5e6693120..ced25de76d79f2e8485ff0464d1ad9acc821ffaf 100644 (file)
@@ -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;