change tex memory allocation calls (debian bug 383209)
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 16 Aug 2006 20:53:39 +0000 (20:53 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 16 Aug 2006 20:53:39 +0000 (20:53 +0000)
src/mesa/drivers/dri/tdfx/tdfx_tex.c

index 04ddfaad24bd01396f4b6cea582a752112ea4be2..862c7dacf1ffc5c806a620220a56b950737e571f 100644 (file)
@@ -1364,8 +1364,7 @@ tdfxTexImage2D(GLcontext *ctx, GLenum target, GLint level,
        texImage->Data = _mesa_alloc_texmemory(texImage->CompressedSize);
     } else {
        dstRowStride = mml->width * texelBytes;
-       texImage->Data = _mesa_alloc_texmemory(mml->width * mml->height *
-                                             texelBytes);
+       texImage->Data = _mesa_alloc_texmemory(mml->width * mml->height * texelBytes);
     }
     if (!texImage->Data) {
        _mesa_error(ctx, GL_OUT_OF_MEMORY, "glTexImage2D");