mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/hlsl: Don't dereference a NULL offset_node in hlsl_offset_from_deref().
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Giovanni Mascellani <gmascellani@codeweavers.com> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
committed by
Alexandre Julliard
parent
6765c1dfb4
commit
14e9a1ba1c
@@ -1201,7 +1201,7 @@ unsigned int hlsl_offset_from_deref(const struct hlsl_deref *deref)
|
|||||||
if (offset_node->type != HLSL_IR_CONSTANT)
|
if (offset_node->type != HLSL_IR_CONSTANT)
|
||||||
{
|
{
|
||||||
FIXME("Dereference with non-constant offset of type %s.\n", hlsl_node_type_to_string(offset_node->type));
|
FIXME("Dereference with non-constant offset of type %s.\n", hlsl_node_type_to_string(offset_node->type));
|
||||||
offset_node = NULL;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
return hlsl_ir_constant(offset_node)->value[0].u;
|
return hlsl_ir_constant(offset_node)->value[0].u;
|
||||||
|
Reference in New Issue
Block a user