mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 14:18:07 +02:00
mesa: don't print GL errors in release builds if MESA_DEBUG=silent
Reviewed-by: Zoltán Böszörményi <zboszor@gmail.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6946>
This commit is contained in:
parent
eda37fb269
commit
9281dfca3f
1 changed files with 2 additions and 2 deletions
|
|
@ -66,8 +66,8 @@ output_if_debug(const char *prefixString, const char *outputString,
|
|||
else
|
||||
debug = 1;
|
||||
#else
|
||||
/* in release builds, be silent unless MESA_DEBUG is set */
|
||||
debug = getenv("MESA_DEBUG") != NULL;
|
||||
const char *env = getenv("MESA_DEBUG");
|
||||
debug = env && strstr(env, "silent") == NULL;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue