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:
authorCampbell Barton <ideasman42@gmail.com>2012-12-31 18:55:16 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-12-31 18:55:16 +0400
commitb754fcd6f93ff610d533803a1acb2fd4c3aac0ae (patch)
tree8df5cc7fa722437d589b95c82340bba549ef7aba /source/blender/imbuf
parent44632295b323de590fcc7068c836c3d2445049bc (diff)
code cleanup: warning
Diffstat (limited to 'source/blender/imbuf')
-rw-r--r--source/blender/imbuf/intern/readimage.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/source/blender/imbuf/intern/readimage.c b/source/blender/imbuf/intern/readimage.c
index 8e0709e3670..00bc78ee488 100644
--- a/source/blender/imbuf/intern/readimage.c
+++ b/source/blender/imbuf/intern/readimage.c
@@ -91,16 +91,20 @@ ImBuf *IMB_ibImageFromMemory(unsigned char *mem, size_t size, int flags, char co
}
else {
if (flags & IB_alphamode_premul) {
- if (ibuf->rect)
+ if (ibuf->rect) {
IMB_unpremultiply_alpha(ibuf);
- else
- /* pass, floats are expected to be premul */ ;
+ }
+ else {
+ /* pass, floats are expected to be premul */
+ }
}
else {
- if (ibuf->rect_float)
+ if (ibuf->rect_float) {
IMB_premultiply_alpha(ibuf);
- else
- /* pass, bytes are expected to be straight */ ;
+ }
+ else {
+ /* pass, bytes are expected to be straight */
+ }
}
}