]> git.cworth.org Git - apitrace/blobdiff - dump.cpp
Fix max texture units computation.
[apitrace] / dump.cpp
index 8c757ebf3e07776525a52721f4e4b4be2964a403..22f62e3692c5ce45857b86df235615dd99db9f49 100644 (file)
--- a/dump.cpp
+++ b/dump.cpp
  **************************************************************************/
 
 
+/*
+ * Simple utility to dump a trace to standard output.
+ */
+
+
 #include "trace_parser.hpp"
 
 
 int main(int argc, char **argv)
 {
-   for (int i = 1; i < argc; ++i) {
-      Trace::Parser p;
-      if (p.open(argv[i])) {
-          Trace::Call *call;
-          while ((call = p.parse_call())) {
-              std::cout << *call;
-          }
-      }
-   }
-   return 0;
+    for (int i = 1; i < argc; ++i) {
+        Trace::Parser p;
+        if (p.open(argv[i])) {
+            Trace::Call *call;
+            call = p.parse_call();
+            while (call) {
+                std::cout << *call;
+                delete call;
+                call = p.parse_call();
+            }
+        }
+    }
+    return 0;
 }