Fix compilation warning

This commit is contained in:
2020-12-17 13:24:15 +01:00
parent f302f9fe1f
commit bc82ef2b86
@@ -635,7 +635,7 @@ bool TextureTool::ImportTextureDirectXTex(ImageType type, const StringView& path
{ {
sourceDxgiFormat = ToDxgiFormat(PixelFormatExtensions::ToNonsRGB(ToPixelFormat(sourceDxgiFormat))); sourceDxgiFormat = ToDxgiFormat(PixelFormatExtensions::ToNonsRGB(ToPixelFormat(sourceDxgiFormat)));
((DirectX::TexMetadata&)currentImage->GetMetadata()).format = sourceDxgiFormat; ((DirectX::TexMetadata&)currentImage->GetMetadata()).format = sourceDxgiFormat;
for (int32 i = 0; i < currentImage->GetImageCount(); i++) for (size_t i = 0; i < currentImage->GetImageCount(); i++)
((DirectX::Image*)currentImage->GetImages())[i].format = sourceDxgiFormat; ((DirectX::Image*)currentImage->GetImages())[i].format = sourceDxgiFormat;
} }