]> git.cworth.org Git - apitrace/blobdiff - glws_glx.cpp
glws: Add support for profiles
[apitrace] / glws_glx.cpp
index 3c49de81309dd25983da7a3eca51efee5d14f3a1..d771093b430b80ec343b8be0e93bf341781da0d0 100644 (file)
@@ -293,12 +293,16 @@ createDrawable(const Visual *visual, int width, int height)
 }
 
 Context *
-createContext(const Visual *_visual, Context *shareContext)
+createContext(const Visual *_visual, Context *shareContext, Profile profile)
 {
     const GlxVisual *visual = dynamic_cast<const GlxVisual *>(_visual);
     GLXContext share_context = NULL;
     GLXContext context;
 
+    if (profile != PROFILE_COMPAT) {
+        return NULL;
+    }
+
     if (shareContext) {
         share_context = dynamic_cast<GlxContext*>(shareContext)->context;
     }