@@ -4109,6 +4109,7 @@ namespace bgfx { namespace d3d11
, imageContainer.m_numLayers
, imageContainer.m_format
);
+ ti.numMips = bx::min<uint8_t>(imageContainer.m_numMips-startLod, ti.numMips);
m_flags = _flags;
m_width = ti.width;
@@ -4592,6 +4592,7 @@ namespace bgfx { namespace d3d12
@@ -2920,6 +2920,7 @@ namespace bgfx { namespace d3d9
@@ -4734,6 +4734,7 @@ BX_TRACE("%d, %d, %d, %s", _array, _srgb, _mipAutogen, getName(_format) );
m_requestedFormat = uint8_t(imageContainer.m_format);
m_textureFormat = uint8_t(getViableTextureFormat(imageContainer) );
@@ -2591,6 +2591,7 @@ namespace bgfx { namespace mtl