diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-04-25 16:54:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-04-25 16:54:44 +0300 |
commit | 51b81830c032fe255254a269b85679a89aa3728d (patch) | |
tree | 00f00059b167a621eb4933b6b7ffa66d31c9a715 | |
parent | b873a942a8e78d42d159aa1e307b7c8155d6e755 (diff) | |
download | mv-51b81830c032fe255254a269b85679a89aa3728d.tar.gz mv-51b81830c032fe255254a269b85679a89aa3728d.tar.bz2 mv-51b81830c032fe255254a269b85679a89aa3728d.tar.xz mv-51b81830c032fe255254a269b85679a89aa3728d.zip |
Add configure option --enable-openglerrors for report OpenGL errors on legacy drivers.
This option slow down execution, but can be usefull for debugging.
-rwxr-xr-x | configure.ac | 13 | ||||
-rw-r--r-- | src/Makefile.am | 7 |
2 files changed, 20 insertions, 0 deletions
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], diff --git a/src/Makefile.am b/src/Makefile.am index eff7ba47f..9df9091a4 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -92,6 +92,10 @@ if USE_OPENGL dyecmd_CXXFLAGS += -DUSE_OPENGL manaplus_CXXFLAGS += -DUSE_OPENGL endif +if ENABLE_OPENGLERRORS +dyecmd_CXXFLAGS += -DOPENGLERRORS +manaplus_CXXFLAGS += -DOPENGLERRORS +endif if ENABLE_MEM_DEBUG dyecmd_CXXFLAGS += -DENABLE_MEM_DEBUG -DDEBUG_DUMP_LEAKS @@ -1979,6 +1983,9 @@ endif if USE_X11 manaplustests_CXXFLAGS += -DUSE_X11 endif +if ENABLE_OPENGLERRORS +manaplustests_CXXFLAGS += -DOPENGLERRORS +endif manaplustests_SOURCES = ${SRC} \ enums/render/mockdrawtype.h \ |