]> git.cworth.org Git - apitrace/blobdiff - glws_wgl.cpp
Try to find the best matching EGL visual according to the profile.
[apitrace] / glws_wgl.cpp
index 63ce5fea1444748ef2f6c3956d1a732cb3fdef6d..ca100d9106b753e5c0cfb8d46453222503c57609 100644 (file)
@@ -199,7 +199,11 @@ cleanup(void) {
 }
 
 Visual *
-createVisual(bool doubleBuffer) {
+createVisual(bool doubleBuffer, Profile profile) {
+    if (profile != PROFILE_COMPAT) {
+        return NULL;
+    }
+
     Visual *visual = new Visual();
 
     visual->doubleBuffer = doubleBuffer;