(Windows) Fixed two compiler warnings.

This commit is contained in:
Leon Styhre 2022-01-07 00:30:31 +01:00
parent 19147eee66
commit 0021bee104

View file

@ -152,7 +152,8 @@ void LottieComponent::render(const glm::mat4& parentTrans)
glm::mat4 trans{parentTrans * getTransform()};
mTexture->initFromPixels(&mBuffer2.at(mLastDisplayedFrame).at(0), mSize.x, mSize.y);
mTexture->initFromPixels(&mBuffer2.at(mLastDisplayedFrame).at(0), static_cast<size_t>(mSize.x),
static_cast<size_t>(mSize.y));
mTexture->bind();
if (!mSkipFrame)
@ -181,4 +182,4 @@ void LottieComponent::render(const glm::mat4& parentTrans)
.count()
<< " ms";
}
};
}