From: Felix Kuehling Date: Sun, 21 Mar 2004 21:58:03 +0000 (+0000) Subject: ctx->Const.MaxTextureLevels is not the highest mipmap level but the number X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=03762ba8dac3cc5db199fb0354adba66db56995b;p=mesa.git ctx->Const.MaxTextureLevels is not the highest mipmap level but the number > of levels, including 0. --- diff --git a/src/mesa/drivers/dri/savage/savage_xmesa.c b/src/mesa/drivers/dri/savage/savage_xmesa.c index 3eb7953f6de..721047bb893 100644 --- a/src/mesa/drivers/dri/savage/savage_xmesa.c +++ b/src/mesa/drivers/dri/savage/savage_xmesa.c @@ -295,8 +295,8 @@ savageCreateContext( const __GLcontextModes *mesaVis, if (size > maxTextureSize) break; } - ctx->Const.MaxTextureLevels = maxTextureLevels-1; - assert (ctx->Const.MaxTextureLevels >= 6); /*spec requires at least 64x64*/ + ctx->Const.MaxTextureLevels = maxTextureLevels; + assert (ctx->Const.MaxTextureLevels > 6); /*spec requires at least 64x64*/ #if 0 ctx->Const.MinLineWidth = 1.0;