gl/win32: fix detection of GL/wglext.h

Was resulting in 'present but cannot be compiled' errors
This commit is contained in:
Matthew Waters 2014-04-02 09:29:56 +11:00
parent 14e993e745
commit 21ea26abbe

View file

@ -717,7 +717,7 @@ case $host in
LIBS="$LIBS -lgdi32" LIBS="$LIBS -lgdi32"
AG_GST_CHECK_LIBHEADER(GL, opengl32, glTexImage2D,, GL/gl.h) AG_GST_CHECK_LIBHEADER(GL, opengl32, glTexImage2D,, GL/gl.h)
AG_GST_CHECK_LIBHEADER(GLU, glu32, gluSphere,, GL/glu.h) AG_GST_CHECK_LIBHEADER(GLU, glu32, gluSphere,, GL/glu.h)
AC_CHECK_HEADER(GL/wglext.h, HAVE_WGLEXT="yes", HAVE_WGLEXT="no") AC_CHECK_HEADER(GL/wglext.h, HAVE_WGLEXT="yes", HAVE_WGLEXT="no", [#include <GL/gl.h>])
if test "x$HAVE_WGLEXT" = "xyes"; then if test "x$HAVE_WGLEXT" = "xyes"; then
HAVE_GL=yes HAVE_GL=yes
HAVE_GLU=yes HAVE_GLU=yes