From 51b81830c032fe255254a269b85679a89aa3728d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 25 Apr 2017 16:54:44 +0300 Subject: Add configure option --enable-openglerrors for report OpenGL errors on legacy drivers. This option slow down execution, but can be usefull for debugging. --- configure.ac | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index ec2230a98..05fed8a7e 100755 --- a/configure.ac +++ b/configure.ac @@ -92,6 +92,19 @@ esac],[glibcdebug_enabled=false]) AM_CONDITIONAL(ENABLE_GLIBCDEBUG, test x$glibcdebug_enabled = xtrue) +# Enable OpenGL error reporting +AC_ARG_ENABLE(openglerrors, +[ --enable-openglerrors Enable OpenGL errors reporting], +[case "${enableval}" in + yes) openglerrors_enabled=true + ;; + no) openglerrors_enabled=false + ;; + *) AC_MSG_ERROR(bad value ${enableval} for --enable-openglerrors) ;; +esac],[openglerrors_enabled=false]) + +AM_CONDITIONAL(ENABLE_OPENGLERRORS, test x$openglerrors_enabled = xtrue) + # Checks for android. AC_ARG_ENABLE(androidbuild, [ --enable-androidbuild Turn on android building], -- cgit v1.2.3-70-g09d2