From a6ea63099bbbd6966b48c11cf5a69bcb31fbf965 Mon Sep 17 00:00:00 2001 From: don bright Date: Thu, 31 Jan 2013 04:31:08 +0100 Subject: remove compiler warning about GLX 1.3 / 1.2 detection 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 { -- cgit v0.10.1