aboutsummaryrefslogtreecommitdiff
path: root/include/backend
diff options
context:
space:
mode:
Diffstat (limited to 'include/backend')
-rw-r--r--include/backend/headless.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/backend/headless.h b/include/backend/headless.h
index 5681c2bd..4a29b033 100644
--- a/include/backend/headless.h
+++ b/include/backend/headless.h
@@ -3,7 +3,6 @@
#include <wlr/backend/headless.h>
#include <wlr/backend/interface.h>
-#include <wlr/render/gles2.h>
#define HEADLESS_DEFAULT_REFRESH (60 * 1000) // 60 Hz
@@ -12,6 +11,8 @@ struct wlr_headless_backend {
struct wlr_egl priv_egl; // may be uninitialized
struct wlr_egl *egl;
struct wlr_renderer *renderer;
+ struct wlr_allocator *allocator;
+ struct wlr_drm_format *format;
struct wl_display *display;
struct wl_list outputs;
size_t last_output_num;
@@ -19,7 +20,6 @@ struct wlr_headless_backend {
struct wl_listener display_destroy;
struct wl_listener renderer_destroy;
bool started;
- GLenum internal_format;
};
struct wlr_headless_output {
@@ -28,7 +28,8 @@ struct wlr_headless_output {
struct wlr_headless_backend *backend;
struct wl_list link;
- GLuint fbo, rbo;
+ struct wlr_swapchain *swapchain;
+ struct wlr_buffer *back_buffer, *front_buffer;
struct wl_event_source *frame_timer;
int frame_delay; // ms