From 80fcbca7dff099be352a9b6237e05a02e321ef26 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sun, 15 Oct 2006 22:30:35 +0000 Subject: allow >10 mipmap levels (patch by Benno Schulenberg) (bug 3130) --- src/mesa/drivers/dri/unichrome/via_tex.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/mesa/drivers/dri/unichrome/via_tex.c') diff --git a/src/mesa/drivers/dri/unichrome/via_tex.c b/src/mesa/drivers/dri/unichrome/via_tex.c index 1cba08dee8..0261a3ff17 100644 --- a/src/mesa/drivers/dri/unichrome/via_tex.c +++ b/src/mesa/drivers/dri/unichrome/via_tex.c @@ -513,11 +513,11 @@ static GLboolean viaSetTexImages(GLcontext *ctx, numLevels = lastLevel - firstLevel + 1; - /* The hardware only supports 10 mipmap levels. Ignore higher levels. + /* The hardware supports only 10 mipmap levels; ignore higher levels. */ - if (numLevels > 10) { - lastLevel -= numLevels - 10; - numLevels = 10; + if ((numLevels > 10) && (ctx->Const.MaxTextureLevels > 10)) { + lastLevel -= numLevels - 10; + numLevels = 10; } /* save these values, check if they effect the residency of the -- cgit v1.2.3