From 8ae53765c75f86b3074d75d4682b263f1acf8dcc Mon Sep 17 00:00:00 2001 From: Bart van Strien Date: Sat, 23 Oct 2010 18:24:52 +0200 Subject: [PATCH] Images are now bound before they are encoded (fixes #95) --- src/modules/image/devil/ImageData.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/image/devil/ImageData.cpp b/src/modules/image/devil/ImageData.cpp index dd1ad5a2d..d583d4280 100644 --- a/src/modules/image/devil/ImageData.cpp +++ b/src/modules/image/devil/ImageData.cpp @@ -171,6 +171,7 @@ namespace devil } EncodedImageData * ImageData::encode(EncodedImageData::Format f) { + ilBindImage(image); ILubyte * data; ILuint w = getWidth(); int h = getHeight(); // has to be a signed int so we can make it negative for BMPs