ports/graphics/devil/files/patch-50
Mikhail Teterin 226a727f0b Make buildable with clang. While here, add patches submitted upstream
by others. Also make use of the author's own self-test suit.

PR:		196161
Approved by:	maintainer timeout
2016-03-01 00:49:27 +00:00

14 lines
367 B
Text

See https://sourceforge.net/p/openil/patches/50/
--- src-IL/src/il_targa.c (revision 1678)
+++ src-IL/src/il_targa.c (working copy)
@@ -219,6 +219,9 @@
ilSetError(IL_ILLEGAL_FILE_VALUE);
return IL_FALSE;
}
+
+ if (bTarga==IL_FALSE)
+ return IL_FALSE;
// @JASON Extra Code to manipulate the image depending on
// the Image Descriptor's origin bits.