diff --git a/es-core/src/resources/TextureResource.cpp b/es-core/src/resources/TextureResource.cpp index 9d35d964b..c1f8afa13 100644 --- a/es-core/src/resources/TextureResource.cpp +++ b/es-core/src/resources/TextureResource.cpp @@ -211,8 +211,8 @@ void TextureResource::rasterizeAt(float width, float height) if (mForceLoad || mTextureData != nullptr) data->load(); - mSize.x = width; - mSize.y = height; + mSize.x = static_cast(width); + mSize.y = static_cast(height); } size_t TextureResource::getTotalMemUsage()