summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenton Woods <denton.woods@unt.edu>2016-12-17 19:02:00 -0600
committerDenton Woods <denton.woods@unt.edu>2016-12-17 19:02:00 -0600
commitb726806317e6d94028cc70cabd1eb7b574e4a97c (patch)
tree5cd9ad01309b7fdd2a2281be7686ad49331be0f3
parent60fe32f8d608149e6ab2824ba298877d621bb333 (diff)
parent66da62b0e20acea9667254278ca9329693b93809 (diff)
downloaddevil-b726806317e6d94028cc70cabd1eb7b574e4a97c.tar.gz
Merge branch 'master' of https://github.com/DentonW/DevIL
-rw-r--r--DevIL/src-IL/src/il_targa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/DevIL/src-IL/src/il_targa.c b/DevIL/src-IL/src/il_targa.c
index e414152b..55b4070f 100644
--- a/DevIL/src-IL/src/il_targa.c
+++ b/DevIL/src-IL/src/il_targa.c
@@ -608,6 +608,7 @@ ILboolean iSaveTargaInternal()
char *idString = "Developer's Image Library (DevIL)";
ILuint Day, Month, Year, Hour, Minute, Second;
char *TempData;
+ ILshort zero_short = 0;
if (iCurImage == NULL) {
ilSetError(IL_ILLEGAL_OPERATION);
@@ -726,7 +727,6 @@ ILboolean iSaveTargaInternal()
TempData = (char*)TempImage->Data;
// Write out the origin stuff.
- ILshort zero_short = 0;
iwrite(&zero_short, sizeof(ILshort), 1);
iwrite(&zero_short, sizeof(ILshort), 1);