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:
fayjf 2009-02-18 18:30:12 +00:00
parent cf85aaefef
commit 457f74d24f

View File

@ -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;