From 40513f1a0ec3cb2b2fdc4b0dbd4765d152ef76ce Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 10 Mar 2020 17:07:49 +0100 Subject: backend/headless: use FBOs instead of pbuffers --- include/backend/headless.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/backend/headless.h b/include/backend/headless.h index 66448071..d8cb4dc2 100644 --- a/include/backend/headless.h +++ b/include/backend/headless.h @@ -3,6 +3,7 @@ #include #include +#include #define HEADLESS_DEFAULT_REFRESH (60 * 1000) // 60 Hz @@ -16,6 +17,7 @@ struct wlr_headless_backend { struct wl_list input_devices; struct wl_listener display_destroy; bool started; + GLenum internal_format; }; struct wlr_headless_output { @@ -24,7 +26,8 @@ struct wlr_headless_output { struct wlr_headless_backend *backend; struct wl_list link; - void *egl_surface; + GLuint fbo, rbo; + struct wl_event_source *frame_timer; int frame_delay; // ms }; -- cgit v1.2.3