diff options
author | Alba Mendez <me@alba.sh> | 2024-01-15 00:13:55 +0100 |
---|---|---|
committer | Erik Faye-Lund <erik.faye-lund@collabora.com> | 2024-02-22 09:48:13 +0100 |
commit | 579276579fa0c91b1a2e3109ad591d809385ca09 (patch) | |
tree | 7476afa50f53cfe2ad8f47e7a8a6e25ca8d7f35f | |
parent | 2e40dee974eaf751e37d848003ea8f6918bf5c29 (diff) |
eglinfo: fix crash
Reviewed-by: Hoe Hao Cheng <haochengho12907@gmail.com>
-rw-r--r-- | src/egl/opengl/eglinfo.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/egl/opengl/eglinfo.c b/src/egl/opengl/eglinfo.c index dbad489f..3fbc5c1a 100644 --- a/src/egl/opengl/eglinfo.c +++ b/src/egl/opengl/eglinfo.c @@ -833,7 +833,7 @@ doExtExplicitDevice(struct options opts, const char *clientext) break; for (int k = 0; k < num_devices; k++) { - const EGLAttrib attrib_list[] = { + const EGLint attrib_list[] = { EGL_DEVICE_EXT, (EGLAttrib) devices[k], EGL_NONE }; @@ -842,9 +842,9 @@ doExtExplicitDevice(struct options opts, const char *clientext) snprintf(description, 64, "Device %d on %s", k, platforms[i].human_name); - EGLDisplay d = eglGetPlatformDisplay(platforms[i].platform_enum, - EGL_DEFAULT_DISPLAY, - attrib_list); + EGLDisplay d = eglGetPlatformDisplayEXT(platforms[i].platform_enum, + EGL_DEFAULT_DISPLAY, + attrib_list); if (!d) break; |