Skip to content

Commit

Permalink
tests: Fix ID3D12CommandQueue::GetDevice mock not incrementing ref count
Browse files Browse the repository at this point in the history
  • Loading branch information
Saancreed committed Jun 14, 2024
1 parent 58d9ada commit 64ea672
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/nvapi_d3d12.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ TEST_CASE("D3D12 methods succeed", "[.d3d12]") {
.RETURN(commandQueueRefCount);
ALLOW_CALL(commandQueue, GetDevice(__uuidof(ID3D12Device), _))
.LR_SIDE_EFFECT(*_2 = static_cast<ID3D12Device*>(&device))
.LR_SIDE_EFFECT(deviceRefCount++)
.RETURN(S_OK);

SECTION("CreateGraphicsPipelineState for other than SetDepthBounds returns not-supported") {
Expand Down

0 comments on commit 64ea672

Please sign in to comment.