]> git.cworth.org Git - apitrace/blobdiff - glws_glx.cpp
Add "apitrace trim" command.
[apitrace] / glws_glx.cpp
index a7f0b0fca49e7acfaed87625ec9f2f4e2a052b1a..c151db1c07fb91914c070699cc79fec4bc49f076 100644 (file)
@@ -240,7 +240,12 @@ cleanup(void) {
 }
 
 Visual *
-createVisual(bool doubleBuffer) {
+createVisual(bool doubleBuffer, Profile profile) {
+    if (profile != PROFILE_COMPAT &&
+        profile != PROFILE_CORE) {
+        return NULL;
+    }
+
     GlxVisual *visual = new GlxVisual;
 
     if (glxVersion >= 0x0103) {