Synchronized WGL behavior with GLX implementation: Do not call the new context creation API when it is not required. Fixing a bug in a previous commit on the way... :-}
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@772 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
335315c378
commit
9824207a74
@ -307,8 +307,8 @@ void fgNewWGLCreateContext( SFG_Window* window )
|
|||||||
int attribs[7];
|
int attribs[7];
|
||||||
PFNWGLCREATECONTEXTATTRIBSARBPROC wglCreateContextAttribsARB;
|
PFNWGLCREATECONTEXTATTRIBSARBPROC wglCreateContextAttribsARB;
|
||||||
|
|
||||||
if( (fgState.ContextFlags & GLUT_FORWARD_COMPATIBLE) &&
|
/* If nothing fancy has been required, leave the context as it is */
|
||||||
(fgState.MajorVersion > 2) )
|
if ( fgState.MajorVersion == 1 && fgState.MinorVersion == 0 && fgState.ContextFlags == 0 )
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user