]> git.notmuchmail.org Git - apitrace/blobdiff - retrace/glretrace.hpp
Determine core32 from the traces.
[apitrace] / retrace / glretrace.hpp
index 11f4d27574dd1a05bd7ec88a001a9b64db94d44a..f058d8deaaf94731b889b8c9e5781824ba5ca464 100644 (file)
@@ -48,6 +48,12 @@ struct Context {
     glws::Context* wsContext;
     GLuint activeProgram;
     bool used;
+    
+    // Context must be current
+    inline bool
+    hasExtension(const char *extension) const {
+        return wsContext->hasExtension(extension);
+    }
 };
 
 extern bool insideList;
@@ -57,6 +63,11 @@ extern bool insideGlBeginEnd;
 extern glws::Drawable *currentDrawable;
 extern Context *currentContext;
 
+
+int
+parseAttrib(const trace::Value *attribs, int param, int default_);
+
+
 glws::Drawable *
 createDrawable(glws::Profile profile);