mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/hlsl: Handle error expressions in conditions.
This commit is contained in:
parent
ae1d62f6a0
commit
94cf432035
Notes:
Henri Verbeet
2024-10-28 18:10:10 +01:00
Approved-by: Francisco Casas (@fcasas) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1214
@ -332,6 +332,9 @@ static void check_condition_type(struct hlsl_ctx *ctx, const struct hlsl_ir_node
|
|||||||
{
|
{
|
||||||
const struct hlsl_type *type = cond->data_type;
|
const struct hlsl_type *type = cond->data_type;
|
||||||
|
|
||||||
|
if (type->class == HLSL_CLASS_ERROR)
|
||||||
|
return;
|
||||||
|
|
||||||
if (type->class > HLSL_CLASS_LAST_NUMERIC || type->dimx > 1 || type->dimy > 1)
|
if (type->class > HLSL_CLASS_LAST_NUMERIC || type->dimx > 1 || type->dimy > 1)
|
||||||
{
|
{
|
||||||
struct vkd3d_string_buffer *string;
|
struct vkd3d_string_buffer *string;
|
||||||
|
Loading…
Reference in New Issue
Block a user