Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2012-10-23 19:46:44 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2012-10-23 19:46:44 +0400
commitc623ba5e4b2aa68a5717ba17500c14217bc417aa (patch)
treec339d9fa7d4728e3dfb70203b6a5149301ff59c9 /source/blender/imbuf/intern/dds/dds_api.cpp
parent267d6fdf2d6d4deecf6f97a7046b69fa43458297 (diff)
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.
Diffstat (limited to 'source/blender/imbuf/intern/dds/dds_api.cpp')
-rw-r--r--source/blender/imbuf/intern/dds/dds_api.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/imbuf/intern/dds/dds_api.cpp b/source/blender/imbuf/intern/dds/dds_api.cpp
index 7aacbf20bae..68b7013c31f 100644
--- a/source/blender/imbuf/intern/dds/dds_api.cpp
+++ b/source/blender/imbuf/intern/dds/dds_api.cpp
@@ -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);