mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
vkd3d: Fix assert() condition for sample mask array size.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
c8ec3be716
commit
d74133fda5
@ -2438,7 +2438,7 @@ static HRESULT d3d12_pipeline_state_init_graphics(struct d3d12_pipeline_state *s
|
||||
graphics->ms_desc.pSampleMask = NULL;
|
||||
if (desc->SampleMask != ~0u)
|
||||
{
|
||||
assert(DIV_ROUND_UP(sample_count, 32) < ARRAY_SIZE(graphics->sample_mask));
|
||||
assert(DIV_ROUND_UP(sample_count, 32) <= ARRAY_SIZE(graphics->sample_mask));
|
||||
graphics->sample_mask[0] = desc->SampleMask;
|
||||
graphics->sample_mask[1] = 0xffffffffu;
|
||||
graphics->ms_desc.pSampleMask = graphics->sample_mask;
|
||||
|
Loading…
x
Reference in New Issue
Block a user