st: remove another unneeded 'is compressed' comparison
authorBrian Paul <brianp@vmware.com>
Thu, 9 Apr 2009 21:00:54 +0000 (15:00 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 9 Apr 2009 21:02:48 +0000 (15:02 -0600)
src/mesa/state_tracker/st_cb_texture.c

index bd023e001836ee1d9b048da1cacdab5edce9ba7e..57c0544ba8b2112a2f24668769d224136a9573ef 100644 (file)
@@ -1394,8 +1394,9 @@ st_finalize_texture(GLcontext *ctx,
           stObj->pt->width[0] != firstImage->base.Width2 ||
           stObj->pt->height[0] != firstImage->base.Height2 ||
           stObj->pt->depth[0] != firstImage->base.Depth2 ||
-          stObj->pt->block.size/stObj->pt->block.width != cpp || /* Nominal bytes per pixel */
-          stObj->pt->compressed != firstImage->base.IsCompressed) {
+          /* Nominal bytes per pixel: */
+          stObj->pt->block.size / stObj->pt->block.width != cpp)
+      {
          pipe_texture_reference(&stObj->pt, NULL);
          ctx->st->dirty.st |= ST_NEW_FRAMEBUFFER;
       }