Commits

Bart van Strien committed 40a8880

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

Comments (0)

Files changed (1)

src/modules/image/devil/ImageData.cpp

 	}
 
 	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