Blender Git Loki
Git Commits -> Revision 9bb91f9
December 21, 2002, 09:52 (GMT) |
Fix so that rgba targa files view correctly in gimp: Submitted to bf-committers by Chris Want Kent Index: targa.c =================================================================== RCS file: /cvs01/blender/source/blender/imbuf/intern/targa.c,v retrieving revision 1.4 diff -u -r1.4 targa.c --- targa.c 2002/12/20 01:29:14 1.4 +++ targa.c 2002/12/21 09:50:24 @@ -289,6 +289,12 @@ if (flags & IB_ttob) buf[17] ^= 0x20; + /* Don't forget to indicate that your 32 bit + * targa uses 8 bits for the alpha channel! */ + if (ibuf->depth==32) { + buf[17] |= 0x08; + } + if (write(file, buf, 18) != 18) return (0); if (ibuf->cmap){ for (i = 0 ; i<ibuf->maxcol ; i++){ |
Commit Details:
Full Hash: 9bb91f9e5720f831a563ec402e062fd386e4ea2c
SVN Revision: 210
Parent Commit: 0f95aa1
Lines Changed: +6, -0
1 Modified Path:
/source/blender/imbuf/intern/targa.c (+6, -0) (Diff)