Skip to content

Commit

Permalink
Fix compressed texture uploads using the wrong pixel format.
Browse files Browse the repository at this point in the history
  • Loading branch information
slime73 committed Feb 17, 2024
1 parent 1084d94 commit 81d0c72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/graphics/Texture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ void Texture::uploadImageData(love::image::ImageDataBase *d, int level, int slic
lock.setLock(id->getMutex());

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)
Expand Down

0 comments on commit 81d0c72

Please sign in to comment.