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:
authorAlexander Ewering <blender@instinctive.de>2005-09-19 04:12:43 +0400
committerAlexander Ewering <blender@instinctive.de>2005-09-19 04:12:43 +0400
commit4bfbb978d25ae77ee8058d985bccd88d6f52f43e (patch)
treeffd2cfc2b942b636d0eaee6b0563d40446963e43 /source/blender/imbuf
parent743bf0c7bb7149e078c855a3f2386c137259ab94 (diff)
Bug #2930:
Fix Amiga IFF loading for little-endian platforms
Diffstat (limited to 'source/blender/imbuf')
-rw-r--r--source/blender/imbuf/intern/amiga.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/imbuf/intern/amiga.c b/source/blender/imbuf/intern/amiga.c
index 7753a430baf..20655b3a211 100644
--- a/source/blender/imbuf/intern/amiga.c
+++ b/source/blender/imbuf/intern/amiga.c
@@ -41,6 +41,8 @@
#include "IMB_imbuf_types.h"
#include "IMB_imbuf.h"
+#include "BKE_global.h"
+
#include "IMB_cmap.h"
#include "IMB_allocimbuf.h"
#include "IMB_bitplanes.h"
@@ -529,7 +531,7 @@ struct ImBuf *imb_loadamiga(int *iffmem,int flags)
if (ibuf) {
if (ibuf->rect)
- IMB_convert_rgba_to_abgr(ibuf->x*ibuf->y, ibuf->rect);
+ if (G.order == B_ENDIAN) IMB_convert_rgba_to_abgr(ibuf->x*ibuf->y, ibuf->rect);
}
return (ibuf);