Small simplification in ImageComponent.

This commit is contained in:
Leon Styhre 2021-10-23 17:35:23 +02:00
parent 3c567c07d8
commit 89aefab54c

View file

@ -123,9 +123,9 @@ void ImageComponent::resize()
// Make sure sub-pixel values are not rounded to zero.
if (mSize.x < 1.0f)
mSize.x = ceilf(mSize.x);
mSize.x = 1.0f;
if (mSize.y < 1.0f)
mSize.y = ceilf(mSize.y);
mSize.y = 1.0f;
mTexture->rasterizeAt(mSize.x, mSize.y);