Bläddra i källkod

Update EmbedTexturesProcess.cpp

Replace c-cast by static_cast.
Kim Kulling 7 år sedan
förälder
incheckning
b01594f6a8
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      code/EmbedTexturesProcess.cpp

+ 1 - 1
code/EmbedTexturesProcess.cpp

@@ -134,7 +134,7 @@ bool EmbedTexturesProcess::addTexture(aiScene* pScene, std::string path) const {
     // Add the new texture
     // Add the new texture
     auto pTexture = new aiTexture();
     auto pTexture = new aiTexture();
     pTexture->mHeight = 0; // Means that this is still compressed
     pTexture->mHeight = 0; // Means that this is still compressed
-    pTexture->mWidth = uint32_t(imageSize);
+    pTexture->mWidth = static_cats<uint32_t>(imageSize);
     pTexture->pcData = imageContent;
     pTexture->pcData = imageContent;
 
 
     auto extension = path.substr(path.find_last_of('.') + 1u);
     auto extension = path.substr(path.find_last_of('.') + 1u);