From c8d98f6901b36147b516c76044e2c41dda7452a5 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sat, 2 Nov 2024 09:28:34 +0100 Subject: [RCFIEL] Add an option to force usage of native EGL/GLESv2 library --- src/core.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/core.c') diff --git a/src/core.c b/src/core.c index 89f0c78b..a7ca5e32 100644 --- a/src/core.c +++ b/src/core.c @@ -159,6 +159,7 @@ int box64_x11glx = 1; int allow_missing_libs = 0; int box64_prefer_emulated = 0; int box64_prefer_wrapped = 0; +int box64_wrap_egl = 0; int box64_sse_flushto0 = 0; int box64_x87_no80bits = 0; int box64_sync_rounding = 0; @@ -1517,6 +1518,13 @@ void LoadEnvVars(box64context_t *context) printf_log(LOG_INFO, "BOX64: Prefering Emulated libs\n"); } } + if(getenv("BOX64_WRAP_EGL")) { + char* p = getenv("BOX64_WRAP_EGL"); + if (*p>='0' && *p<='1') { + box64_wrap_egl = *p - '0'; + if(box64_wrap_egl) printf_log(LOG_INFO, "BOX64: Prefering Native(Wrapped) EGL/GLESv2\n"); + } + } if(getenv("BOX64_NOSIGSEGV")) { if (strcmp(getenv("BOX64_NOSIGSEGV"), "1")==0) { -- cgit 1.4.1