diff options
Diffstat (limited to 'src/core.c')
| -rw-r--r-- | src/core.c | 8 |
1 files changed, 8 insertions, 0 deletions
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) { |