]> git.cworth.org Git - apitrace/blobdiff - retrace/glws.hpp
Check extensions via glGetStringi() on core profile.
[apitrace] / retrace / glws.hpp
index 05903a7b55281b96b6d00058c844fe551a2b9f7e..9557c0c71b65eb0d792852b905a792e3879c08bf 100644 (file)
@@ -32,6 +32,8 @@
 
 
 #include <vector>
+#include <set>
+#include <string>
 
 
 namespace glws {
@@ -130,12 +132,18 @@ public:
     const Visual *visual;
     Profile profile;
     
+    std::set<std::string> extensions;
+
     Context(const Visual *vis, Profile prof) :
         visual(vis),
         profile(prof)
     {}
 
     virtual ~Context() {}
+
+    // Context must be current
+    bool
+    hasExtension(const char *extension);
 };