summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/egl/main/egldisplay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/egl/main/egldisplay.c b/src/egl/main/egldisplay.c
index 96c8072d03a..fbfb7446105 100644
--- a/src/egl/main/egldisplay.c
+++ b/src/egl/main/egldisplay.c
@@ -84,7 +84,7 @@ _eglGetNativePlatformFromEnv(void)
const char *plat_name;
EGLint i;
- plat_name = getenv("EGL_PLATFORM");
+ plat_name = getenv("EGL_PLATFORM_MESA");
/* try deprecated env variable */
if (!plat_name || !plat_name[0])
plat_name = getenv("EGL_DISPLAY");