Add check of mips support for IsSupportedTexture

This commit is contained in:
Chuck Walbourn 2017-01-20 14:58:08 -08:00
parent 5db16bd5bb
commit 3ac574b6b5

View File

@ -260,6 +260,11 @@ bool DirectX::IsSupportedTexture(
formatSupport = 0;
}
if (metadata.mipLevels > 1 && !(formatSupport & D3D11_FORMAT_SUPPORT_MIP))
{
return false;
}
switch (metadata.dimension)
{
case TEX_DIMENSION_TEXTURE1D: