| 596 | } |
| 597 | |
| 598 | void DDSFile::SurfaceData::writeNextMip(DDSFile *dds, Stream &s, U32 height, U32 width, U32 mipLevel) |
| 599 | { |
| 600 | U32 size = dds->getSurfaceSize(height, width, mipLevel); |
| 601 | if(!s.write(size, mMips[mipLevel])) |
| 602 | Con::errorf("DDSFile::SurfaceData::writeNextMip - failed to write mip!"); |
| 603 | } |
| 604 | |
| 605 | //------------------------------------------------------------------------------ |
| 606 |
no test coverage detected