gl: fix automagic disabling of desktop GL

If configure finds GL + GLES2 but the user passes --enable-gles2 and
the two GL API's cannot be built against together, configure was still
allowing the desktop GL stack to be built.
This commit is contained in:
Matthew Waters 2014-11-25 13:33:07 +11:00
parent 3d38dff076
commit aeaf4a4388

View file

@ -861,6 +861,7 @@ if test "x$HAVE_GL" = "xyes" -a "x$HAVE_GLU" = "xyes" -a "x$HAVE_GLES2" = "xyes"
fi
AC_MSG_WARN([Disabling Desktop GL support])
HAVE_GL=no
USE_OPENGL=no
else
AC_MSG_WARN([Disabling GL|ES 2.0 support])
HAVE_GLES2=no