ctx->Const.MaxTextureLevels is not the highest mipmap level but the number
authorFelix Kuehling <fxkuehl@gmx.de>
Sun, 21 Mar 2004 21:58:03 +0000 (21:58 +0000)
committerFelix Kuehling <fxkuehl@gmx.de>
Sun, 21 Mar 2004 21:58:03 +0000 (21:58 +0000)
> of levels, including 0.

src/mesa/drivers/dri/savage/savage_xmesa.c

index 3eb7953f6def70aac55b21d25afb3a5777feb524..721047bb8933d5d2efbd1ccc947706592bbc77ab 100644 (file)
@@ -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;