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-09-15 10:29:32 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-09-15 10:29:32 +0400
commit77ed2d8ca9af8bb646ceb56f47e7a9e21d1eaaee (patch)
tree9f7bf0a150b958f0a56ed9eae00fbc516618a6ac /source/blender/imbuf/intern/targa.c
parentaa364bb366d8c0d6566ffacd59d881a8bab8657b (diff)
code cleanup: remove paranoid NULL checks (these cases would crash earlier of the vars were in fact NULL)
Diffstat (limited to 'source/blender/imbuf/intern/targa.c')
-rw-r--r--source/blender/imbuf/intern/targa.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/imbuf/intern/targa.c b/source/blender/imbuf/intern/targa.c
index 4df49386ce1..2f7452772ef 100644
--- a/source/blender/imbuf/intern/targa.c
+++ b/source/blender/imbuf/intern/targa.c
@@ -682,9 +682,11 @@ ImBuf *imb_loadtarga(unsigned char *mem, size_t mem_size, int flags)
}
}
- if (tga.imgdes & 0x20) IMB_flipy(ibuf);
+ if (tga.imgdes & 0x20) {
+ IMB_flipy(ibuf);
+ }
- if (ibuf && ibuf->rect)
+ if (ibuf->rect)
IMB_convert_rgba_to_abgr(ibuf);
return(ibuf);