From: Ralf Jung Date: Sun, 17 Nov 2013 17:54:03 +0000 (+0100) Subject: require GLX 1.4 X-Git-Url: https://git.ralfj.de/gltest.git/commitdiff_plain/2a1fa3416d6a809c158882f91a773953da96b611?ds=inline;hp=3e648337c136c8a8715d642857faa9e00a6db180 require GLX 1.4 --- diff --git a/glxbackend.cpp b/glxbackend.cpp index f556a64..d636f67 100644 --- a/glxbackend.cpp +++ b/glxbackend.cpp @@ -58,9 +58,9 @@ VisualID GLXBackend::initialize(Display *display) int glxMajor, glxMinor; glXQueryVersion(display, &glxMajor, &glxMinor); printf("Using GLX version: %d.%d\n", glxMajor, glxMinor); - if (glxMajor == 1 && glxMinor < 3) { - // glXChooseFBConfig and glXCreateNewContext require GLX 1.3 - die("Need at least GLX 1.3 to function properly\n"); + if (glxMajor == 1 && glxMinor < 4) { + // glXChooseFBConfig and glXCreateNewContext require GLX 1.3; GLX_ARB_create_context requires GLX 1.4 + die("Need at least GLX 1.4 to function properly\n"); } // check for extension-based functions funSwapIntervalMesa = (PFNGLXSWAPINTERVALMESAPROC)resolveGLXFunction("GLX_MESA_swap_control", "glXSwapIntervalMESA");