mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-23 18:10:36 +02:00
egl: warn user if they set an invalid EGL_PLATFORM
Technically, the user might have set EGL_DISPLAY instead of EGL_PLATFORM, but since the former is deprecated let's just mention the latter in the warning message. Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
This commit is contained in:
parent
5cdfccf8a6
commit
5f7d90f2ff
1 changed files with 3 additions and 0 deletions
|
|
@ -105,6 +105,9 @@ _eglGetNativePlatformFromEnv(void)
|
|||
}
|
||||
}
|
||||
|
||||
if (plat == _EGL_INVALID_PLATFORM)
|
||||
_eglLog(_EGL_WARNING, "invalid EGL_PLATFORM given");
|
||||
|
||||
return plat;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue