mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
vkd3d-shader/hlsl: Validate that condition expressions are numeric.
This commit is contained in:
parent
09220edd21
commit
183172eff4
Notes:
Alexandre Julliard
2024-01-23 23:04:27 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/577
@ -296,7 +296,7 @@ static void check_condition_type(struct hlsl_ctx *ctx, const struct hlsl_ir_node
|
||||
{
|
||||
const struct hlsl_type *type = cond->data_type;
|
||||
|
||||
if (type->dimx > 1 || type->dimy > 1)
|
||||
if (type->class > HLSL_CLASS_LAST_NUMERIC || type->dimx > 1 || type->dimy > 1)
|
||||
{
|
||||
struct vkd3d_string_buffer *string;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user