From e3b6d341cd3a05efe5bf1eba396994fc4f887b3a Mon Sep 17 00:00:00 2001 From: insofaras Date: Tue, 22 Mar 2016 00:20:05 +0000 Subject: [PATCH] linux: use 3.2 GL context not 3.1, since 3.1 didn't have compatibility contexts --- linux_4ed.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/linux_4ed.cpp b/linux_4ed.cpp index 7caca93b..16d18fd2 100644 --- a/linux_4ed.cpp +++ b/linux_4ed.cpp @@ -1315,7 +1315,7 @@ InitializeOpenGLContext(Display *XDisplay, Window XWindow, GLXFBConfig &bestFbc, ctxErrorOccurred = false; context_attribs[1] = 3; - context_attribs[3] = 1; + context_attribs[3] = 2; fprintf(stderr, "Creating context\n" ); ctx = glXCreateContextAttribsARB( XDisplay, bestFbc, 0, @@ -1325,7 +1325,7 @@ InitializeOpenGLContext(Display *XDisplay, Window XWindow, GLXFBConfig &bestFbc, if ( !ctxErrorOccurred && ctx ) { - fprintf(stderr, "Created GL 3.1 context\n" ); + fprintf(stderr, "Created GL 3.2 context\n" ); } else { @@ -1334,7 +1334,7 @@ InitializeOpenGLContext(Display *XDisplay, Window XWindow, GLXFBConfig &bestFbc, ctxErrorOccurred = false; - fprintf(stderr, "Failed to create GL 4.0 context" + fprintf(stderr, "Failed to create GL 3.2 context" " ... using old-style GLX context\n" ); ctx = glXCreateContextAttribsARB( XDisplay, bestFbc, 0, True, context_attribs );