Fixing a build error caused by a variable declaration being out of place
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@779 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
cf85aaefef
commit
457f74d24f
@ -306,6 +306,7 @@ void fgNewWGLCreateContext( SFG_Window* window )
|
||||
HGLRC context;
|
||||
int attribs[7];
|
||||
PFNWGLCREATECONTEXTATTRIBSARBPROC wglCreateContextAttribsARB;
|
||||
const char * pWglExtString;
|
||||
|
||||
/* If nothing fancy has been required, leave the context as it is */
|
||||
if ( fgState.MajorVersion == 1 && fgState.MinorVersion == 0 && fgState.ContextFlags == 0 )
|
||||
@ -322,7 +323,7 @@ void fgNewWGLCreateContext( SFG_Window* window )
|
||||
return;
|
||||
}
|
||||
|
||||
const char * pWglExtString=wglGetEntensionsStringARB(window->Window.Device);
|
||||
pWglExtString=wglGetEntensionsStringARB(window->Window.Device);
|
||||
if (( pWglExtString == NULL ) || ( strstr(pWglExtString, "WGL_ARB_create_context") == NULL ))
|
||||
{
|
||||
return;
|
||||
|
Reference in New Issue
Block a user