X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=glws_glx.cpp;h=c151db1c07fb91914c070699cc79fec4bc49f076;hb=4fdd5632465440b4f584a74bd4c171aa225a16e5;hp=a7f0b0fca49e7acfaed87625ec9f2f4e2a052b1a;hpb=8842c2353d673b45d34c163e444d6ecd068d255c;p=apitrace diff --git a/glws_glx.cpp b/glws_glx.cpp index a7f0b0f..c151db1 100644 --- a/glws_glx.cpp +++ b/glws_glx.cpp @@ -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) {