Просмотр исходного кода

Fix ambiguous call to BansheeEngine::toString() for g++

Marc Legendre 9 лет назад
Родитель
Сommit
4244c84f91
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      Source/BansheeCore/Source/BsTexture.cpp

+ 3 - 3
Source/BansheeCore/Source/BsTexture.cpp

@@ -407,7 +407,7 @@ namespace BansheeEngine
 
 		if (subresourceIdx >= (UINT32)mCPUSubresourceData.size())
 		{
-			LOGERR("Invalid subresource index: " + toString(subresourceIdx) + ". Supported range: 0 .. " + toString(mCPUSubresourceData.size()));
+			LOGERR("Invalid subresource index: " + toString(subresourceIdx) + ". Supported range: 0 .. " + toString((unsigned)mCPUSubresourceData.size()));
 			return;
 		}
 
@@ -457,7 +457,7 @@ namespace BansheeEngine
 		UINT32 subresourceIdx = mProperties.mapToSubresourceIdx(face, mipLevel);
 		if (subresourceIdx >= (UINT32)mCPUSubresourceData.size())
 		{
-			LOGERR("Invalid subresource index: " + toString(subresourceIdx) + ". Supported range: 0 .. " + toString(mCPUSubresourceData.size()));
+			LOGERR("Invalid subresource index: " + toString(subresourceIdx) + ". Supported range: 0 .. " + toString((unsigned)mCPUSubresourceData.size()));
 			return;
 		}
 
@@ -557,4 +557,4 @@ namespace BansheeEngine
 
 		return TextureManager::instance().createTexture(desc, pixelData);
 	}
-}
+}