mirror of
https://github.com/love2d/love.git
synced 2026-08-19 12:14:20 +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) {
|
EncodedImageData * ImageData::encode(EncodedImageData::Format f) {
|
||||||
|
ilBindImage(image);
|
||||||
ILubyte * data;
|
ILubyte * data;
|
||||||
ILuint w = getWidth();
|
ILuint w = getWidth();
|
||||||
int h = getHeight(); // has to be a signed int so we can make it negative for BMPs
|
int h = getHeight(); // has to be a signed int so we can make it negative for BMPs
|
||||||
|
|||||||
Reference in New Issue
Block a user