From e3b73374cde10a1428af6a8c9d63173899f48f1d Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Wed, 19 Jun 2024 20:22:41 +0200 Subject: [PATCH] egl: use os_get_option() to allow android to set EGL_LOG_LEVEL Part-of: --- src/egl/main/egllog.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/egl/main/egllog.c b/src/egl/main/egllog.c index 678bb75d5bf..0de00b2f612 100644 --- a/src/egl/main/egllog.c +++ b/src/egl/main/egllog.c @@ -39,6 +39,7 @@ #include #include "c11/threads.h" #include "util/macros.h" +#include "util/os_misc.h" #include "util/simple_mtx.h" #include "util/u_string.h" @@ -106,7 +107,7 @@ _eglInitLogger(void) if (logging.initialized) return; - log_env = getenv("EGL_LOG_LEVEL"); + log_env = os_get_option("EGL_LOG_LEVEL"); if (log_env) { for (i = 0; i < ARRAY_SIZE(level_strings); i++) { if (strcasecmp(log_env, level_strings[i]) == 0) {