From: Francisco Casas fcasas@codeweavers.com
--- libs/vkd3d-shader/hlsl_sm1.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/libs/vkd3d-shader/hlsl_sm1.c b/libs/vkd3d-shader/hlsl_sm1.c index 2219ef56..229f6895 100644 --- a/libs/vkd3d-shader/hlsl_sm1.c +++ b/libs/vkd3d-shader/hlsl_sm1.c @@ -165,6 +165,9 @@ static D3DXPARAMETER_CLASS sm1_class(const struct hlsl_type *type)
static D3DXPARAMETER_TYPE sm1_base_type(const struct hlsl_type *type) { + if (type->type == HLSL_CLASS_ARRAY) + return sm1_base_type(type->e.array.type); + switch (type->base_type) { case HLSL_TYPE_BOOL: