From 316ca607dfcbd008c18c5406fcfef28bc38e9e27 Mon Sep 17 00:00:00 2001 From: Bart van Strien Date: Sat, 23 Apr 2011 19:18:05 +0200 Subject: [PATCH] Oops --- src/modules/image/devil/ImageData.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/image/devil/ImageData.cpp b/src/modules/image/devil/ImageData.cpp index ba054732e..ed6ba22a3 100644 --- a/src/modules/image/devil/ImageData.cpp +++ b/src/modules/image/devil/ImageData.cpp @@ -89,9 +89,9 @@ namespace devil ilBindImage(image); bool success = (ilTexImage(width, height, 1, bpp, IL_RGBA, IL_UNSIGNED_BYTE, 0) == IL_TRUE); - int err = ilGetError(); if(!success) { + int err = ilGetError(); if (err != IL_NO_ERROR){ switch (err) { case IL_ILLEGAL_OPERATION: @@ -126,6 +126,7 @@ namespace devil bool success = (ilTexImage(width, height, 1, bpp, IL_RGBA, IL_UNSIGNED_BYTE, data) == IL_TRUE); if(!success) { + int err = ilGetError(); if (err != IL_NO_ERROR){ switch (err) { case IL_ILLEGAL_OPERATION: