Commit 9c985e70 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

d3dcompiler: Use the cached scalar type in expr_common_type() where possible.

parent 8d12efec
......@@ -1294,6 +1294,8 @@ static struct hlsl_type *expr_common_type(struct hlsl_type *t1, struct hlsl_type
}
}
if (type == HLSL_CLASS_SCALAR)
return hlsl_ctx.builtin_types.scalar[base];
return new_hlsl_type(NULL, type, base, dimx, dimy);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment