Giovanni Mascellani (@giomasce) commented about libs/vkd3d-shader/hlsl.c:
return strcmp(name, type->name);
}
+static struct hlsl_scope *hlsl_new_scope(struct hlsl_ctx *ctx, struct hlsl_scope *upper) +{
- struct hlsl_scope *scope;
- if (!(scope = hlsl_alloc(ctx, sizeof(*scope))))
return NULL;
- TRACE("Pushing a new scope.\n");
This is already done by the caller.