Skip to content

Commit

Permalink
fix compliler errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Nonary committed Sep 14, 2024
1 parent 6c61c7f commit c1ca513
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/ddprobe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ test_frame_capture(dxgi::dup_t &dup, ComPtr<ID3D11Device> device) {
std::cout << "Frame acquired successfully." << std::endl;

ComPtr<ID3D11Texture2D> frameTexture;
HRESULT status = frameResource->QueryInterface(IID_PPV_ARGS(&frameTexture));
status = frameResource->QueryInterface(IID_PPV_ARGS(&frameTexture));
if (FAILED(status)) {
std::cout << "Error: Failed to query texture interface from frame resource [0x"sv << util::hex(status).to_string_view() << ']' << std::endl;
return status;
Expand Down Expand Up @@ -176,7 +176,7 @@ test_frame_capture(dxgi::dup_t &dup, ComPtr<ID3D11Device> device) {
}

auto contextCleanup = util::fail_guard([&context, &stagingTexture]() {
context->Unmap(stagingTexture.Get());
context->Unmap(stagingTexture.Get(), 0);
});

if (is_valid_frame(mappedResource, frameDesc)) {
Expand Down

0 comments on commit c1ca513

Please sign in to comment.