diff --git a/DirectXTex/DirectXTexD3D11.cpp b/DirectXTex/DirectXTexD3D11.cpp index ebfe674..7d6b302 100644 --- a/DirectXTex/DirectXTexD3D11.cpp +++ b/DirectXTex/DirectXTexD3D11.cpp @@ -222,7 +222,7 @@ bool DirectX::IsSupportedTexture( const size_t iWidth = metadata.width; const size_t iHeight = metadata.height; - switch (fmt) + switch (static_cast(fmt)) { case DXGI_FORMAT_BC4_TYPELESS: case DXGI_FORMAT_BC4_UNORM: diff --git a/DirectXTex/DirectXTexD3D12.cpp b/DirectXTex/DirectXTexD3D12.cpp index f66b3f7..9681f0e 100644 --- a/DirectXTex/DirectXTexD3D12.cpp +++ b/DirectXTex/DirectXTexD3D12.cpp @@ -338,7 +338,7 @@ bool DirectX::IsSupportedTexture( const size_t iWidth = metadata.width; const size_t iHeight = metadata.height; - switch (fmt) + switch (static_cast(fmt)) { case DXGI_FORMAT_NV12: case DXGI_FORMAT_P010: