linux: use 3.2 GL context not 3.1, since 3.1 didn't have compatibility contexts
This commit is contained in:
parent
9f08f94fc0
commit
e3b6d341cd
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue