aboutsummaryrefslogtreecommitdiff
path: root/render/wlr_renderer.c
diff options
context:
space:
mode:
Diffstat (limited to 'render/wlr_renderer.c')
-rw-r--r--render/wlr_renderer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/render/wlr_renderer.c b/render/wlr_renderer.c
index 459016b6..cfddca88 100644
--- a/render/wlr_renderer.c
+++ b/render/wlr_renderer.c
@@ -27,6 +27,7 @@
#endif // WLR_HAS_VULKAN_RENDERER
#include "backend/backend.h"
+#include "render/pass.h"
#include "render/pixel_format.h"
#include "render/wlr_renderer.h"
#include "util/env.h"
@@ -415,7 +416,7 @@ int wlr_renderer_get_drm_fd(struct wlr_renderer *r) {
struct wlr_render_pass *wlr_renderer_begin_buffer_pass(
struct wlr_renderer *renderer, struct wlr_buffer *buffer) {
if (!renderer->impl->begin_buffer_pass) {
- return NULL;
+ return begin_legacy_buffer_render_pass(renderer, buffer);
}
return renderer->impl->begin_buffer_pass(renderer, buffer);
}