aboutsummaryrefslogtreecommitdiff
path: root/include/backend
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-03-10 17:07:49 +0100
committerDrew DeVault <sir@cmpwn.com>2020-04-22 22:40:54 +0200
commit40513f1a0ec3cb2b2fdc4b0dbd4765d152ef76ce (patch)
treeee27e078cda6e8a3ec53d317d4d1ddc715ebfcdf /include/backend
parent5dc3a9c7544e0436494bcc316cfaf4ca93094c6d (diff)
backend/headless: use FBOs instead of pbuffers
Diffstat (limited to 'include/backend')
-rw-r--r--include/backend/headless.h5
1 files changed, 4 insertions, 1 deletions
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 <wlr/backend/headless.h>
#include <wlr/backend/interface.h>
+#include <wlr/render/gles2.h>
#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
};