diff options
author | Simon Ser <contact@emersion.fr> | 2022-12-07 11:33:45 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-04-25 17:25:10 +0200 |
commit | 471249ae4f84f3f34877a1dbf20b94ba0cb0a9f0 (patch) | |
tree | a7b3f4f0ffb9ef9a0fe66c41850ac7666a8f67c1 /render/wlr_renderer.c | |
parent | 4a1ad32534e1a5f53a066d0b546f5f979a9c5b5e (diff) |
render/pass: add legacy render pass implementation
Add a render pass implementation which leverages the legacy
rendering API. This is helpful during the migration.
Diffstat (limited to 'render/wlr_renderer.c')
-rw-r--r-- | render/wlr_renderer.c | 3 |
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); } |