]> git.tdb.fi Git - gldbg.git/blobdiff - source/gldbg.cpp
Add classes to track OpenGL state and commands to inspect it
[gldbg.git] / source / gldbg.cpp
index c91e00a79ec8171dd6672fbc8a1b9333209fa7e4..b95f81d831d43d630556f0fa56ba7eae1c2cd833 100644 (file)
@@ -44,6 +44,8 @@ int GlDbg::main()
        IO::print("Type \"help\" for a list of commands\n");
 
        Application::main();
+
+       return 0;
 }
 
 void GlDbg::launch()
@@ -131,6 +133,7 @@ void GlDbg::read_stream()
                                if(size<0)
                                        break;
                                tracer.decode(data, len);
+                               glstate.decode(data, len);
                                buf_offset += size;
                        }
                        if(buf_offset>8192)