mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Images are now bound before they are encoded (fixes #95)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user