fix them all
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -90,7 +90,7 @@ namespace ImageProcessingAtom
|
||||
for (i; i < ePixelFormat_Count; i++)
|
||||
{
|
||||
const PixelFormatInfo* info = CPixelFormats::GetInstance().GetPixelFormatInfo((EPixelFormat)i);
|
||||
if (info->d3d10Format == dxgiFormat)
|
||||
if (static_cast<AZ::u32>(info->d3d10Format) == dxgiFormat)
|
||||
{
|
||||
eFormat = (EPixelFormat)i;
|
||||
break;
|
||||
@@ -509,7 +509,7 @@ namespace ImageProcessingAtom
|
||||
for (i; i < ePixelFormat_Count; i++)
|
||||
{
|
||||
const PixelFormatInfo* info = CPixelFormats::GetInstance().GetPixelFormatInfo((EPixelFormat)i);
|
||||
if (info->d3d10Format == dxgiFormat)
|
||||
if (static_cast<uint32_t>(info->d3d10Format) == dxgiFormat)
|
||||
{
|
||||
format = (EPixelFormat)i;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user