mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-18 07:05:39 +00:00
Fixed an issue where TextureResource::initFromPixels() was not setting the source size correctly
This commit is contained in:
parent
2e293e6264
commit
3d5a8aa08f
|
@ -85,7 +85,7 @@ void TextureResource::initFromPixels(const unsigned char* dataRGBA, size_t width
|
|||
mTextureData->initFromRGBA(dataRGBA, width, height);
|
||||
// Cache the image dimensions.
|
||||
mSize = glm::ivec2 {static_cast<int>(width), static_cast<int>(height)};
|
||||
mSourceSize = glm::vec2 {mTextureData->sourceWidth(), mTextureData->sourceHeight()};
|
||||
mSourceSize = glm::vec2 {static_cast<float>(width), static_cast<float>(height)};
|
||||
}
|
||||
|
||||
void TextureResource::initFromMemory(const char* data, size_t length)
|
||||
|
|
Loading…
Reference in a new issue