mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-15 08:56:26 -05:00
render/egl: use EGL_KHR_debug
This commit is contained in:
parent
ff2e08aa74
commit
b1f93bc5cc
8 changed files with 49 additions and 58 deletions
|
|
@ -13,7 +13,7 @@ static EGLSurface egl_create_surface(struct wlr_egl *egl, unsigned int width,
|
|||
|
||||
EGLSurface surf = eglCreatePbufferSurface(egl->display, egl->config, attribs);
|
||||
if (surf == EGL_NO_SURFACE) {
|
||||
wlr_log(L_ERROR, "Failed to create EGL surface: %s", egl_error());
|
||||
wlr_log(L_ERROR, "Failed to create EGL surface");
|
||||
return EGL_NO_SURFACE;
|
||||
}
|
||||
return surf;
|
||||
|
|
@ -123,7 +123,7 @@ struct wlr_output *wlr_headless_add_output(struct wlr_backend *wlr_backend,
|
|||
if (!eglMakeCurrent(output->backend->egl.display,
|
||||
output->egl_surface, output->egl_surface,
|
||||
output->backend->egl.context)) {
|
||||
wlr_log(L_ERROR, "eglMakeCurrent failed: %s", egl_error());
|
||||
wlr_log(L_ERROR, "eglMakeCurrent failed");
|
||||
goto error;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue