render: stop making EGL context current in wlr_egl_init

This leaves an EGL context current behind. wlr_gles2_renderer_create was
assuming the EGL context was already current because of this (because it
called a GL function right off the bat).
This commit is contained in:
Simon Ser 2020-06-02 22:13:16 +02:00 committed by Drew DeVault
parent 019fe8bb7e
commit e91417ea8d
2 changed files with 4 additions and 11 deletions

View file

@ -289,12 +289,6 @@ bool wlr_egl_init(struct wlr_egl *egl, EGLenum platform, void *remote_display,
}
}
if (!eglMakeCurrent(egl->display, EGL_NO_SURFACE, EGL_NO_SURFACE,
egl->context)) {
wlr_log(WLR_ERROR, "Failed to make EGL context current");
goto error;
}
return true;
error: