forked from bartvdbraak/blender
Fix #32837: DDS images flipped in viewport compared to render. This happened
after adding compressed DDS texture loading. DDS images can be flipped compared to the Blender standard, however we do not unflip them because we also don't flip compressed textures. If we would flip those we'd need to uncompress, flip and recompress them, and so losing the speed benefit that you get from using them. Users are expected to save DDS image in OpenGL compatible format.
This commit is contained in:
parent
267d6fdf2d
commit
c623ba5e4b
@ -169,7 +169,13 @@ struct ImBuf *imb_load_dds(unsigned char *mem, size_t size, int flags, char colo
|
||||
ibuf->dds_data.size = 0;
|
||||
}
|
||||
|
||||
IMB_flipy(ibuf);
|
||||
/* DDS images can be flipped compared to the Blender standard, however we
|
||||
* do not unflip them because we also don't flip compressed textures. If
|
||||
* we would flip those we'd need to uncompress, flip and recompress them,
|
||||
* and so losing the speed benefit that you get from using them. Users are
|
||||
* expected to save DDS image in OpenGL compatible format. */
|
||||
|
||||
/* IMB_flipy(ibuf); */
|
||||
}
|
||||
|
||||
return(ibuf);
|
||||
|
Loading…
Reference in New Issue
Block a user