aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Dowdy <berylline@users.noreply.github.com>2021-01-29 23:00:58 +0000
committerSimon Ser <contact@emersion.fr>2021-01-30 00:31:20 +0100
commitc89dba94353771dbfa47e2af5e8eac01ae456213 (patch)
treed5e82203664c3817856d8f0e48e05ca53c3a8e4d
parent7b50f5d3249173d93736d6e2a3c6f61e86b367bd (diff)
examples: remove "major" and "minor" from egl_common.c
Remove "major" and "minor" from egl_common.c as they are not used by the examples that use egl_common.c.
-rw-r--r--examples/egl_common.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/egl_common.c b/examples/egl_common.c
index 0a53f543..2528d9b4 100644
--- a/examples/egl_common.c
+++ b/examples/egl_common.c
@@ -81,8 +81,7 @@ bool egl_init(struct wl_display *display) {
goto error;
}
- EGLint major, minor;
- if (eglInitialize(egl_display, &major, &minor) == EGL_FALSE) {
+ if (eglInitialize(egl_display, NULL, NULL) == EGL_FALSE) {
wlr_log(WLR_ERROR, "Failed to initialize EGL");
goto error;
}