Fixed VS warning.

This commit is contained in:
Branimir Karadžić 2016-08-25 10:37:51 -07:00
parent 7bc17e2921
commit f53d0296ba

View File

@ -2880,7 +2880,7 @@ namespace bgfx
_imageContainer.m_height = height;
_imageContainer.m_depth = depth;
_imageContainer.m_format = format;
_imageContainer.m_numLayers = arraySize;
_imageContainer.m_numLayers = uint16_t(arraySize);
_imageContainer.m_numMips = uint8_t( (caps[0] & DDSCAPS_MIPMAP) ? mips : 1);
_imageContainer.m_hasAlpha = hasAlpha;
_imageContainer.m_cubeMap = cubeMap;