diff options
author | Eric Engestrom <[email protected]> | 2019-09-02 10:09:58 +0100 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2019-09-03 14:41:43 +0100 |
commit | 5f7d90f2ffb3cc6f2c9518870da9009b05c1a063 (patch) | |
tree | 04d2b1983a2ef0474bcccae0b928bd7a7eb9dcce /src/egl | |
parent | 5cdfccf8a6a0528b5112a7f12a4e1eb38a7363a4 (diff) |
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 <[email protected]>
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/egl')
-rw-r--r-- | src/egl/main/egldisplay.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/egl/main/egldisplay.c b/src/egl/main/egldisplay.c index 05720015c24..8d06e717c20 100644 --- a/src/egl/main/egldisplay.c +++ b/src/egl/main/egldisplay.c @@ -105,6 +105,9 @@ _eglGetNativePlatformFromEnv(void) } } + if (plat == _EGL_INVALID_PLATFORM) + _eglLog(_EGL_WARNING, "invalid EGL_PLATFORM given"); + return plat; } |