diff --git a/src/image.cpp b/src/image.cpp index 366c9799..19a47f95 100644 --- a/src/image.cpp +++ b/src/image.cpp @@ -2524,7 +2524,7 @@ namespace bgfx , _imageContainer.m_numMips ); - for (uint32_t lod = 0, num = _imageContainer.m_numMips; lod < num; ++lod) + for (uint8_t lod = 0, num = _imageContainer.m_numMips; lod < num; ++lod) { ImageMip mip; imageGetRawData(_imageContainer, 0, lod, _data, _size, mip);