mirror of
https://codeberg.org/dwl/dwl.git
synced 2024-12-27 03:36:31 +00:00
Revert "drop wl_drm (wlroots!4397)"
There still a lot software that uses this protocol
This reverts commit facbe57fcb
.
This commit is contained in:
parent
1c3aaa70ba
commit
f136aa088a
1 changed files with 4 additions and 1 deletions
5
dwl.c
5
dwl.c
|
@ -20,6 +20,7 @@
|
||||||
#include <wlr/types/wlr_cursor_shape_v1.h>
|
#include <wlr/types/wlr_cursor_shape_v1.h>
|
||||||
#include <wlr/types/wlr_data_control_v1.h>
|
#include <wlr/types/wlr_data_control_v1.h>
|
||||||
#include <wlr/types/wlr_data_device.h>
|
#include <wlr/types/wlr_data_device.h>
|
||||||
|
#include <wlr/types/wlr_drm.h>
|
||||||
#include <wlr/types/wlr_export_dmabuf_v1.h>
|
#include <wlr/types/wlr_export_dmabuf_v1.h>
|
||||||
#include <wlr/types/wlr_fractional_scale_v1.h>
|
#include <wlr/types/wlr_fractional_scale_v1.h>
|
||||||
#include <wlr/types/wlr_gamma_control_v1.h>
|
#include <wlr/types/wlr_gamma_control_v1.h>
|
||||||
|
@ -2216,9 +2217,11 @@ setup(void)
|
||||||
* with wlr_scene. */
|
* with wlr_scene. */
|
||||||
wlr_renderer_init_wl_shm(drw, dpy);
|
wlr_renderer_init_wl_shm(drw, dpy);
|
||||||
|
|
||||||
if (wlr_renderer_get_dmabuf_texture_formats(drw))
|
if (wlr_renderer_get_dmabuf_texture_formats(drw)) {
|
||||||
|
wlr_drm_create(dpy, drw);
|
||||||
wlr_scene_set_linux_dmabuf_v1(scene,
|
wlr_scene_set_linux_dmabuf_v1(scene,
|
||||||
wlr_linux_dmabuf_v1_create_with_renderer(dpy, 4, drw));
|
wlr_linux_dmabuf_v1_create_with_renderer(dpy, 4, drw));
|
||||||
|
}
|
||||||
|
|
||||||
/* Autocreates an allocator for us.
|
/* Autocreates an allocator for us.
|
||||||
* The allocator is the bridge between the renderer and the backend. It
|
* The allocator is the bridge between the renderer and the backend. It
|
||||||
|
|
Loading…
Reference in a new issue