mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-21 06:46:46 -04:00
compositor: Remove notion of primary renderer
Uploading textures are done by what outputs intersect the surface, not an arbitrary renderer. If no outputs intersect the surface, the source buffer is locked for longer until the surface is shown, at which point a renderer will be uploaded the buffer.
This commit is contained in:
parent
fc6fd95e4d
commit
5a7c30966c
5 changed files with 52 additions and 61 deletions
|
|
@ -213,7 +213,7 @@ int main(int argc, char *argv[]) {
|
|||
server.allocator = wlr_allocator_autocreate(server.backend,
|
||||
server.renderer);
|
||||
|
||||
wlr_compositor_create(server.wl_display, server.renderer);
|
||||
wlr_compositor_create(server.wl_display);
|
||||
|
||||
server.output_layout = wlr_output_layout_create();
|
||||
|
||||
|
|
|
|||
|
|
@ -166,8 +166,7 @@ int main(int argc, char *argv[]) {
|
|||
server.allocator = wlr_allocator_autocreate(server.backend,
|
||||
server.renderer);
|
||||
|
||||
struct wlr_compositor *compositor =
|
||||
wlr_compositor_create(server.display, server.renderer);
|
||||
struct wlr_compositor *compositor = wlr_compositor_create(server.display);
|
||||
|
||||
wlr_xdg_shell_create(server.display, 2);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue