mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
Fix compressed texture uploads using the wrong pixel format.
This commit is contained in:
@@ -458,7 +458,7 @@ void Texture::uploadImageData(love::image::ImageDataBase *d, int level, int slic
|
|||||||
lock.setLock(id->getMutex());
|
lock.setLock(id->getMutex());
|
||||||
|
|
||||||
Rect rect = {x, y, d->getWidth(), d->getHeight()};
|
Rect rect = {x, y, d->getWidth(), d->getHeight()};
|
||||||
uploadByteData(d->getFormat(), d->getData(), d->getSize(), level, slice, rect);
|
uploadByteData(format, d->getData(), d->getSize(), level, slice, rect);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Texture::replacePixels(love::image::ImageDataBase *d, int slice, int mipmap, int x, int y, bool reloadmipmaps)
|
void Texture::replacePixels(love::image::ImageDataBase *d, int slice, int mipmap, int x, int y, bool reloadmipmaps)
|
||||||
|
|||||||
Reference in New Issue
Block a user