mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
vkd3d-shader/hlsl: Fix wrong conditional in compare_param_hlsl_types().
Signed-off-by: Francisco Casas <fcasas@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Giovanni Mascellani <gmascellani@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
af9bf3bbf2
commit
f5f9cddda2
@ -794,8 +794,7 @@ static int compare_param_hlsl_types(const struct hlsl_type *t1, const struct hls
|
||||
}
|
||||
if (t1->base_type != t2->base_type)
|
||||
return t1->base_type - t2->base_type;
|
||||
if ((t1->base_type == HLSL_TYPE_SAMPLER || t1->base_type == HLSL_TYPE_TEXTURE)
|
||||
&& t1->sampler_dim != t2->sampler_dim)
|
||||
if (t1->base_type == HLSL_TYPE_SAMPLER || t1->base_type == HLSL_TYPE_TEXTURE)
|
||||
{
|
||||
if (t1->sampler_dim != t2->sampler_dim)
|
||||
return t1->sampler_dim - t2->sampler_dim;
|
||||
|
Loading…
x
Reference in New Issue
Block a user