mirror of
https://github.com/microsoft/DirectXTex
synced 2024-11-21 12:00:06 +00:00
Fix some C4063 warnings (#411)
This commit is contained in:
parent
d0bcc504eb
commit
6eca077e06
@ -222,7 +222,7 @@ bool DirectX::IsSupportedTexture(
|
||||
const size_t iWidth = metadata.width;
|
||||
const size_t iHeight = metadata.height;
|
||||
|
||||
switch (fmt)
|
||||
switch (static_cast<int>(fmt))
|
||||
{
|
||||
case DXGI_FORMAT_BC4_TYPELESS:
|
||||
case DXGI_FORMAT_BC4_UNORM:
|
||||
|
@ -338,7 +338,7 @@ bool DirectX::IsSupportedTexture(
|
||||
const size_t iWidth = metadata.width;
|
||||
const size_t iHeight = metadata.height;
|
||||
|
||||
switch (fmt)
|
||||
switch (static_cast<int>(fmt))
|
||||
{
|
||||
case DXGI_FORMAT_NV12:
|
||||
case DXGI_FORMAT_P010:
|
||||
|
Loading…
Reference in New Issue
Block a user