diff options
author | José Fonseca <jose.r.fonseca@gmail.com> | 2011-03-22 22:15:46 +0000 |
---|---|---|
committer | José Fonseca <jose.r.fonseca@gmail.com> | 2011-03-22 22:15:46 +0000 |
commit | 9922183f368ba2bfbe3bce18320684212cef8c2e (patch) | |
tree | 0d78894d2ac3dfdcaaf68195e9c56fc0b17d6f5a /trace_parser.hpp | |
parent | 14c21bc57f0772c50850c4a91c0668cd4e6e45b6 (diff) |
More complete glDrawArrays and glDrawElements support.
Diffstat (limited to 'trace_parser.hpp')
-rw-r--r-- | trace_parser.hpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/trace_parser.hpp b/trace_parser.hpp index 538ff6c..dfaf42e 100644 --- a/trace_parser.hpp +++ b/trace_parser.hpp @@ -69,6 +69,8 @@ protected: unsigned next_call_no; public: + static unsigned long long version; + Parser() { file = NULL; next_call_no = 0; @@ -79,15 +81,13 @@ public: } bool open(const char *filename) { - unsigned long long version; - file = gzopen(filename, "rb"); if (!file) { return false; } version = read_uint(); - if (version != TRACE_VERSION) { + if (version > TRACE_VERSION) { std::cerr << "error: unsupported format version" << version << "\n"; return false; } @@ -400,6 +400,9 @@ public: }; +unsigned long long Trace::Parser::version = 0; + + } /* namespace Trace */ #endif /* _TRACE_PARSER_HPP_ */ |