Utility: Fix some warnings

Former-commit-id: e7645dc5a618d06f0c99bd54bf44756d68288959
This commit is contained in:
Lynix 2016-05-03 23:18:08 +02:00
parent 08926cf530
commit 5e5a83f825
2 changed files with 3 additions and 3 deletions

View File

@ -65,7 +65,7 @@ namespace Nz
headerDX10.resourceDimension = D3D10_RESOURCE_DIMENSION_UNKNOWN;
}
if (header.flags & DDSD_WIDTH == 0)
if ((header.flags & DDSD_WIDTH) == 0)
NazaraWarning("Ill-formed DDS file, doesn't have a width flag");
unsigned int width = std::max(header.width, 1U);
@ -141,7 +141,7 @@ namespace Nz
{
if (header.ddsCaps[1] & DDSCAPS2_CUBEMAP)
{
if (header.ddsCaps[1] & DDSCAPS2_CUBEMAP_ALLFACES != DDSCAPS2_CUBEMAP_ALLFACES)
if ((header.ddsCaps[1] & DDSCAPS2_CUBEMAP_ALLFACES) != DDSCAPS2_CUBEMAP_ALLFACES)
{
NazaraError("Partial cubemap are not yet supported, sorry");
return false;

View File

@ -209,5 +209,5 @@ namespace Nz
void SubMesh::SetMaterialIndex(unsigned int matIndex)
{
m_matIndex = matIndex;
}
}
}