mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -04:00
Revert "server: validate resource versions at creation time"
This reverts commit 88ff135ad4.
The parent interface version may be higher than this interface version,
and the child object should inherit that version.
This check is wrong.
This commit is contained in:
parent
8f2da5e82b
commit
3a2553ff01
1 changed files with 0 additions and 7 deletions
|
|
@ -1390,13 +1390,6 @@ wl_resource_create(struct wl_client *client,
|
|||
{
|
||||
struct wl_resource *resource;
|
||||
|
||||
if (version < 1 || version > interface->version) {
|
||||
wl_log("wl_resource_create: invalid resource version %d "
|
||||
"for interface '%s' - must be in range [1, %d]\n",
|
||||
version, interface->name, interface->version);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
resource = malloc(sizeof *resource);
|
||||
if (resource == NULL)
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue