backend: egl: simplify usage of the target window parameter in egl_init

This commit is contained in:
Maxim Solovyov 2023-08-03 00:53:44 +03:00
parent 249f681857
commit 825cc563e1
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -211,8 +211,8 @@ static backend_t *egl_init(session_t *ps, xcb_window_t target) {
}
// clang-format on
gd->target_win = eglCreatePlatformWindowSurfaceProc(
gd->display, config, (xcb_window_t[]){target}, NULL);
gd->target_win =
eglCreatePlatformWindowSurfaceProc(gd->display, config, &target, NULL);
if (gd->target_win == EGL_NO_SURFACE) {
log_error("Failed to create EGL surface.");
goto end;