summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorFelix Kuehling <fxkuehl@gmx.de>2004-03-21 21:58:03 +0000
committerFelix Kuehling <fxkuehl@gmx.de>2004-03-21 21:58:03 +0000
commit03762ba8dac3cc5db199fb0354adba66db56995b (patch)
tree91db799e025fa92f0c74126b9acfb7ad1bac5298 /src/mesa
parent7e4a56d110bbac1fa7887253385006010940717e (diff)
ctx->Const.MaxTextureLevels is not the highest mipmap level but the number
> of levels, including 0.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/savage/savage_xmesa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/savage/savage_xmesa.c b/src/mesa/drivers/dri/savage/savage_xmesa.c
index 3eb7953f6d..721047bb89 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;