Mesa (master): mesa: remove unused variable bytesPerRow
Marek Olšák
mareko at kemper.freedesktop.org
Fri Apr 29 09:36:29 UTC 2011
Module: Mesa
Branch: master
Commit: aeac658e25bd0d939b503000676a4b3c3114bf41
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=aeac658e25bd0d939b503000676a4b3c3114bf41
Author: Marek Olšák <maraeo at gmail.com>
Date: Thu Apr 28 19:34:56 2011 +0200
mesa: remove unused variable bytesPerRow
---
src/mesa/main/texstore.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c
index d694ab8..6da3e4e 100644
--- a/src/mesa/main/texstore.c
+++ b/src/mesa/main/texstore.c
@@ -4208,11 +4208,9 @@ _mesa_texstore_rgb9_e5(TEXSTORE_PARAMS)
srcPacking,
ctx->_ImageTransferState);
const GLfloat *srcRow = tempImage;
- GLint bytesPerRow;
GLint img, row, col;
if (!tempImage)
return GL_FALSE;
- bytesPerRow = srcWidth * 3 * sizeof(GLfloat);
for (img = 0; img < srcDepth; img++) {
GLubyte *dstRow = (GLubyte *) dstAddr
+ dstImageOffsets[dstZoffset + img] * 4
@@ -4263,11 +4261,9 @@ _mesa_texstore_r11_g11_b10f(TEXSTORE_PARAMS)
srcPacking,
ctx->_ImageTransferState);
const GLfloat *srcRow = tempImage;
- GLint bytesPerRow;
GLint img, row, col;
if (!tempImage)
return GL_FALSE;
- bytesPerRow = srcWidth * 3 * sizeof(GLfloat);
for (img = 0; img < srcDepth; img++) {
GLubyte *dstRow = (GLubyte *) dstAddr
+ dstImageOffsets[dstZoffset + img] * 4
More information about the mesa-commit
mailing list