]> git.cworth.org Git - apitrace/blobdiff - image/image_bmp.cpp
image: Add floating point support.
[apitrace] / image / image_bmp.cpp
index 1961f9d93abc90e4d3c5e127777a4c097c308a20..d349be06b887c4a3ae50f8f123a9b3cb7ab908e0 100644 (file)
@@ -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;