aboutsummaryrefslogtreecommitdiff
path: root/backend/x11
diff options
context:
space:
mode:
Diffstat (limited to 'backend/x11')
-rw-r--r--backend/x11/backend.c2
-rw-r--r--backend/x11/output.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/backend/x11/backend.c b/backend/x11/backend.c
index 225fc49d..59b75a03 100644
--- a/backend/x11/backend.c
+++ b/backend/x11/backend.c
@@ -326,7 +326,7 @@ struct wlr_backend *wlr_x11_backend_create(struct wl_display *display,
goto error_event;
}
- x11->renderer = wlr_gles2_renderer_create(&x11->backend);
+ x11->renderer = wlr_gles2_renderer_create(&x11->egl);
if (x11->renderer == NULL) {
wlr_log(L_ERROR, "Failed to create renderer");
goto error_egl;
diff --git a/backend/x11/output.c b/backend/x11/output.c
index 2220bc2e..4a8ac84c 100644
--- a/backend/x11/output.c
+++ b/backend/x11/output.c
@@ -52,6 +52,7 @@ static void output_destroy(struct wlr_output *wlr_output) {
wl_event_source_remove(output->frame_timer);
eglDestroySurface(x11->egl.display, output->surf);
xcb_destroy_window(x11->xcb_conn, output->win);
+ xcb_flush(x11->xcb_conn);
free(output);
}