diff options
author | Hoe Hao Cheng <haochengho12907@gmail.com> | 2023-12-09 16:54:05 +0800 |
---|---|---|
committer | Erik Faye-Lund <erik.faye-lund@collabora.com> | 2024-01-03 11:47:49 +0000 |
commit | 2e40dee974eaf751e37d848003ea8f6918bf5c29 (patch) | |
tree | ac954119f53a800fd4b030ff62a65af5802bfda5 | |
parent | f337ac485e8b1f9553e506bdd85da984d5bcba5d (diff) |
eglinfo: comestic changes
No functional differences, the platform enums have the same value.
Oh and I snuck in a tiny formatting change.
Reviewed-by: Erik Faye-Lund <erik.faye-lund@gmail.com>
-rw-r--r-- | src/egl/opengl/eglinfo.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/egl/opengl/eglinfo.c b/src/egl/opengl/eglinfo.c index 493bc7f5..dbad489f 100644 --- a/src/egl/opengl/eglinfo.c +++ b/src/egl/opengl/eglinfo.c @@ -80,19 +80,19 @@ static const struct platform platforms[] = { .names = { "EGL_MESA_platform_gbm", "EGL_KHR_platform_gbm" }, .short_name = "gbm", .human_name = "GBM", - .platform_enum = EGL_PLATFORM_GBM_MESA, + .platform_enum = EGL_PLATFORM_GBM_KHR, }, { .names = { "EGL_EXT_platform_wayland", "EGL_KHR_platform_wayland" }, .short_name = "wayland", .human_name = "Wayland", - .platform_enum = EGL_PLATFORM_WAYLAND_EXT, + .platform_enum = EGL_PLATFORM_WAYLAND_KHR, }, { .names = { "EGL_EXT_platform_x11", "EGL_KHR_platform_x11" }, .short_name = "x11", .human_name = "X11", - .platform_enum = EGL_PLATFORM_X11_EXT, + .platform_enum = EGL_PLATFORM_X11_KHR, }, { .names = { "EGL_MESA_platform_surfaceless" }, @@ -566,8 +566,7 @@ doOneDisplay(EGLDisplay d, const char *name, struct options opts) int version; - if (has_opengl && (do_opengl_core || do_opengl_compat)) - { + if (has_opengl && (do_opengl_core || do_opengl_compat)) { EGLBoolean api_result = eglBindAPI(EGL_OPENGL_API); if (api_result) { EGLConfig config = chooseEGLConfig(d, EGL_OPENGL_BIT); |