mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/hlsl: Handle nodes with NULL data types in hlsl_replace_node().
This commit is contained in:
Notes:
Henri Verbeet
2025-06-24 16:31:45 +02:00
Approved-by: Elizabeth Figura (@zfigura) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1553
@@ -4124,7 +4124,7 @@ void hlsl_replace_node(struct hlsl_ir_node *old, struct hlsl_ir_node *new)
|
||||
const struct hlsl_type *old_type = old->data_type, *new_type = new->data_type;
|
||||
struct hlsl_src *src, *next;
|
||||
|
||||
if (hlsl_is_numeric_type(old_type))
|
||||
if (old_type && hlsl_is_numeric_type(old_type))
|
||||
{
|
||||
VKD3D_ASSERT(hlsl_is_numeric_type(new_type));
|
||||
VKD3D_ASSERT(old_type->e.numeric.dimx == new_type->e.numeric.dimx);
|
||||
|
Reference in New Issue
Block a user