diff options
author | don bright <hugh.m.bright@gmail.com> | 2013-01-31 03:31:08 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2013-01-31 03:31:08 (GMT) |
commit | a6ea63099bbbd6966b48c11cf5a69bcb31fbf965 (patch) | |
tree | 823e66517aa6027f009cbfec3344446dc47ee49c /src/OffscreenContextGLX.cc | |
parent | 44bb37fdee6683e1f56d1983f3c53c98b6e3318a (diff) |
remove compiler warning about GLX 1.3 / 1.2 detection
Diffstat (limited to 'src/OffscreenContextGLX.cc')
-rw-r--r-- | src/OffscreenContextGLX.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/OffscreenContextGLX.cc b/src/OffscreenContextGLX.cc index 84bcf0e..52cf49d 100644 --- a/src/OffscreenContextGLX.cc +++ b/src/OffscreenContextGLX.cc @@ -244,8 +244,11 @@ Bool create_glx_dummy_context(OffscreenContext &ctx) // also check to see if GLX 1.3 functions exist glXQueryVersion(ctx.xdisplay, &major, &minor); - +#ifdef glXGetVisualFromFBConfig if ( major==1 && minor<=2 && glXGetVisualFromFBConfig==NULL ) { +#else + if ( major==1 && minor<=2 ) { +#endif cerr << "Error: GLX version 1.3 functions missing. " << "Your GLX version: " << major << "." << minor << endl; } else { |