wined3d: Set the "compareEnable" field of struct VkSamplerCreateInfo to either 0 or 1.

VkBool32 is (unfortunately) specified as 0/1, instead of zero/non-zero. Found
by the validation layers.

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2021-03-11 13:54:32 +01:00 committed by Alexandre Julliard
parent cce051b7d6
commit f969570c22
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ static void wined3d_sampler_vk_cs_init(void *object)
sampler_desc.mipLodBias = desc->lod_bias;
sampler_desc.anisotropyEnable = desc->max_anisotropy != 1;
sampler_desc.maxAnisotropy = desc->max_anisotropy;
sampler_desc.compareEnable = desc->compare;
sampler_desc.compareEnable = !!desc->compare;
sampler_desc.compareOp = vk_compare_op_from_wined3d(desc->comparison_func);
sampler_desc.minLod = desc->min_lod;
sampler_desc.maxLod = desc->max_lod;