From ee80792e0fd1ee0aadad7120d61a958892308d59 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Fri, 29 Oct 2021 20:10:43 +0200 Subject: [PATCH] (Windows) Fixed two MSVC compiler warnings. --- es-core/src/resources/TextureResource.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()