remove compiler warning about GLX 1.3 / 1.2 detection

felipesanches-svg
don bright 2013-01-31 04:31:08 +01:00
parent 44bb37fdee
commit a6ea63099b
1 changed files with 4 additions and 1 deletions

View File

@ -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 {