summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordok666 <dok666>2003-05-19 21:49:51 +0000
committerdok666 <dok666>2003-05-19 21:49:51 +0000
commitb163b02263f5a8f2f477644948465a3b2e24d33d (patch)
treefc60435c2ab702c200b99cdf6950356a798e136d
parent041870e83bff7d56d116cd523c6867dd11a57cd0 (diff)
Code cleanup.
-rw-r--r--src/mesa/drivers/dri/mga/mga_texstate.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/mesa/drivers/dri/mga/mga_texstate.c b/src/mesa/drivers/dri/mga/mga_texstate.c
index 3cd03c6a4d7..d925a9f46de 100644
--- a/src/mesa/drivers/dri/mga/mga_texstate.c
+++ b/src/mesa/drivers/dri/mga/mga_texstate.c
@@ -69,7 +69,6 @@ mgaSetTexImages( mgaContextPtr mmesa,
GLint log2Width, log2Height;
GLuint txformat = 0;
GLint ofs;
- GLuint size = 0;
/* Set the hardware texture format
*/
@@ -134,18 +133,12 @@ mgaSetTexImages( mgaContextPtr mmesa,
break;
}
- size = ((MAX2( texImage->Width, 8 ) *
- MAX2( texImage->Height, 8 ) *
- baseImage->TexFormat->TexelBytes) + 31) & ~31;
- if (!size) {
- numLevels = i;
- break;
- }
-
t->offsets[i] = totalSize;
t->base.dirty_images[0] |= (1<<i);
- totalSize += size;
+ totalSize += ((MAX2( texImage->Width, 8 ) *
+ MAX2( texImage->Height, 8 ) *
+ baseImage->TexFormat->TexelBytes) + 31) & ~31;
}
lastLevel = firstLevel + numLevels - 1;