]> git.cworth.org Git - apitrace/blobdiff - trace_model.cpp
Accept zero valued bitmasks.
[apitrace] / trace_model.cpp
index c74aaaeee998d3c6afdf51543cd1ab8652e0886f..b083186b01bd94d26d437f359fb9df1bfd2eefe7 100644 (file)
@@ -236,8 +236,8 @@ public:
         const Bitmask::Signature *sig = bitmask->sig;
         bool first = true;
         for (Bitmask::Signature::const_iterator it = sig->begin(); value != 0 && it != sig->end(); ++it) {
-            assert(it->second);
-            if ((value & it->second) == it->second) {
+            if ((it->second && (value & it->second) == it->second) ||
+                (!it->second && value == 0)) {
                 if (!first) {
                     os << " | ";
                 }