Browse Source

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

Bart van Strien 15 years ago
parent
commit
8ae53765c7
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/modules/image/devil/ImageData.cpp

+ 1 - 0
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