From 43955cc13faf3d081f5e75ea11f6ee94398d2068 Mon Sep 17 00:00:00 2001 From: "John F. Fay" Date: Wed, 18 Feb 2009 18:30:12 +0000 Subject: [PATCH] Fixing a build error caused by a variable declaration being out of place git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@779 7f0cb862-5218-0410-a997-914c9d46530a --- src/freeglut_window.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/freeglut_window.c b/src/freeglut_window.c index 32dd716..8027e6b 100644 --- a/src/freeglut_window.c +++ b/src/freeglut_window.c @@ -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; -- 1.7.10.4