mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
demos: Check return value of ID3D12Fence_SetEventOnCompletion() (Coverity).
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
049d21ad7a
commit
a96cfa32a1
@ -218,7 +218,8 @@ static void cxg_wait_for_previous_frame(struct cx_gears *cxg)
|
|||||||
|
|
||||||
if (ID3D12Fence_GetCompletedValue(fence->fence) < v)
|
if (ID3D12Fence_GetCompletedValue(fence->fence) < v)
|
||||||
{
|
{
|
||||||
ID3D12Fence_SetEventOnCompletion(fence->fence, v, fence->event);
|
hr = ID3D12Fence_SetEventOnCompletion(fence->fence, v, fence->event);
|
||||||
|
assert(SUCCEEDED(hr));
|
||||||
demo_wait_event(fence->event, INFINITE);
|
demo_wait_event(fence->event, INFINITE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -142,7 +142,8 @@ static void cxt_wait_for_previous_frame(struct cx_triangle *cxt)
|
|||||||
|
|
||||||
if (ID3D12Fence_GetCompletedValue(fence->fence) < v)
|
if (ID3D12Fence_GetCompletedValue(fence->fence) < v)
|
||||||
{
|
{
|
||||||
ID3D12Fence_SetEventOnCompletion(fence->fence, v, fence->event);
|
hr = ID3D12Fence_SetEventOnCompletion(fence->fence, v, fence->event);
|
||||||
|
assert(SUCCEEDED(hr));
|
||||||
demo_wait_event(fence->event, INFINITE);
|
demo_wait_event(fence->event, INFINITE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user