X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=image%2Fimage_bmp.cpp;h=d349be06b887c4a3ae50f8f123a9b3cb7ab908e0;hb=dfd413a5f54bd450850b5e84886949bcdf85b1e7;hp=1961f9d93abc90e4d3c5e127777a4c097c308a20;hpb=59889aafe642e52742524da2c202a1003643fa94;p=apitrace diff --git a/image/image_bmp.cpp b/image/image_bmp.cpp index 1961f9d..d349be0 100644 --- a/image/image_bmp.cpp +++ b/image/image_bmp.cpp @@ -71,6 +71,7 @@ struct Pixel { bool Image::writeBMP(const char *filename) const { assert(channels == 4); + assert(channelType == TYPE_UNORM8); struct FileHeader bmfh; struct InfoHeader bmih;