mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-02 09:01:39 -05:00
Replace two remaining wl_display_add_gloavl() occurences
This commit is contained in:
parent
93d888aec6
commit
7100a5e0bb
2 changed files with 4 additions and 3 deletions
|
|
@ -258,7 +258,7 @@ bind_shm(struct wl_client *client,
|
|||
WL_EXPORT int
|
||||
wl_display_init_shm(struct wl_display *display)
|
||||
{
|
||||
if (!wl_display_add_global(display, &wl_shm_interface, NULL, bind_shm))
|
||||
if (!wl_global_create(display, &wl_shm_interface, 1, NULL, bind_shm))
|
||||
return -1;
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue