Fix 2 compiler warnings

This commit is contained in:
Bart van Strien
2011-04-08 09:12:30 +02:00
parent d55941f7fa
commit cdf85280b6
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ namespace devil
// Bind the image.
ilBindImage(image);
bool success = ilTexImage(width, height, 1, bpp, IL_RGBA, IL_UNSIGNED_BYTE, 0);
bool success = (ilTexImage(width, height, 1, bpp, IL_RGBA, IL_UNSIGNED_BYTE, 0) == IL_TRUE);
int err = ilGetError();
if (err != IL_NO_ERROR){
switch (err) {