Metal: Fixed texture creation.

This commit is contained in:
Бранимир Караџић 2022-01-30 20:18:48 -08:00
parent 4a922e34da
commit 9f04292f40

View File

@ -2916,7 +2916,7 @@ namespace bgfx { namespace mtl
temp = (uint8_t*)BX_ALLOC(g_allocator, ti.width*ti.height*4);
}
for (uint8_t side = 0; side < numSides; ++side)
for (uint16_t side = 0; side < numSides; ++side)
{
uint32_t width = ti.width;
uint32_t height = ti.height;