configure: Fixed bug in previous OpenGL warning patch.
diff --git a/configure b/configure
index 624329c..5c2d657 100755
--- a/configure
+++ b/configure
@@ -9414,7 +9414,7 @@
 { echo "$as_me:$LINENO: result: $wine_cv_opengl_header_version_OK" >&5
 echo "${ECHO_T}$wine_cv_opengl_header_version_OK" >&6; }
 
-	    if test "$wine_cv_opengl_version_OK" = "yes"
+	    if test "$wine_cv_opengl_header_version_OK" = "yes"
             then
 				{ echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
 echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6; }
diff --git a/configure.ac b/configure.ac
index 806c840..b327e0b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -410,7 +410,7 @@
 	      )
             )
 
-	    if test "$wine_cv_opengl_version_OK" = "yes"
+	    if test "$wine_cv_opengl_header_version_OK" = "yes"
             then
 		dnl Check for the presence of the library
 		AC_CHECK_LIB(GL,glXCreateContext,