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:
Derek Foreman 2016-02-18 18:23:05 -06:00
parent 8f2da5e82b
commit 3a2553ff01

View file

@ -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;