Images are now bound before they are encoded (fixes #95)

This commit is contained in:
Bart van Strien
2010-10-23 18:24:52 +02:00
parent 8a7e2a0629
commit 8ae53765c7
+1
View File
@@ -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