This reverts commit
88ff135ad46b556b6fdeb1244ffd019a262967bc.
The parent interface version may be higher than this interface version,
and the child object should inherit that version.
This check is wrong.
{
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;