mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 00:38:48 +02:00
st: remove another unneeded 'is compressed' comparison
This commit is contained in:
parent
1f4a7f3a2e
commit
311f77198e
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue