Parcourir la source

st: remove another unneeded 'is compressed' comparison

tags/mesa_7_5_rc1
Brian Paul il y a 16 ans
Parent
révision
311f77198e
1 fichiers modifiés avec 3 ajouts et 2 suppressions
  1. 3
    2
      src/mesa/state_tracker/st_cb_texture.c

+ 3
- 2
src/mesa/state_tracker/st_cb_texture.c Voir le fichier

@@ -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;
}

Chargement…
Annuler
Enregistrer