OSDN Git Service

mesa: remove unused variable bytesPerRow
authorMarek Olšák <maraeo@gmail.com>
Thu, 28 Apr 2011 17:34:56 +0000 (19:34 +0200)
committerMarek Olšák <maraeo@gmail.com>
Fri, 29 Apr 2011 09:32:55 +0000 (11:32 +0200)
src/mesa/main/texstore.c

index d694ab8..6da3e4e 100644 (file)
@@ -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