28 Jun
2012
28 Jun
'12
3:28 p.m.
2012/6/27 Józef Kucia <joseph.kucia(a)gmail.com>:
---
+ for (mip_level = 0; mip_level < mip_levels; mip_level++) + { + hr = calculate_dds_surface_size(src_info, width, height, &src_pitch, &mip_level_size); + if (FAILED(hr)) return hr; ... + hr = D3DXLoadVolumeFromMemory(volume, palette, NULL, pixels, src_info->Format, + src_pitch, mip_level_size, NULL, &box, filter, color_key);
mip_level_size would be the source slice pitch, right? I'd just call it like that.