Module: wine Branch: stable Commit: d0a38a32c77a05da0ee40b06461cfab4f5fdfdc9 URL: https://source.winehq.org/git/wine.git/?a=commit;h=d0a38a32c77a05da0ee40b064... Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Thu Mar 11 13:54:32 2021 +0100 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(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> (cherry picked from commit f969570c22829351f4afeabb4fee55adce799ad8) Signed-off-by: Michael Stefaniuc <mstefani(a)winehq.org> --- dlls/wined3d/sampler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wined3d/sampler.c b/dlls/wined3d/sampler.c index 8d909627a18..74f00b808fa 100644 --- a/dlls/wined3d/sampler.c +++ b/dlls/wined3d/sampler.c @@ -200,7 +200,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;