Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make IDXGISwapChain buffer cast conditional #1728

Merged
merged 1 commit into from
Sep 7, 2024

Conversation

dgraves
Copy link
Contributor

@dgraves dgraves commented Sep 6, 2024

At replay, the buffer returned by IDXGISwapChain::GetBuffer was always cast to an ID3D12Resource type, which can lead to a crash when the caller requests a different type.

With this change, the returned buffer is only processed as an ID3D12Resource type when the caller specifically requested an ID3D12Resource type.

At replay, the buffer returned by IDXGISwapChain::GetBuffer was always
cast to an ID3D12Resource type, which can lead to a crash when the
caller requests a different type.

With this change, the returned buffer is only processed as an
ID3D12Resource type when the caller specifically requests an
ID3D12Resource type.
@ci-tester-lunarg
Copy link

CI gfxreconstruct build queued with queue ID 251300.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 4794 running.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 4794 passed.

@bradgrantham-lunarg bradgrantham-lunarg merged commit 544fb67 into LunarG:dev Sep 7, 2024
8 checks passed
@dgraves dgraves deleted the conditional-dxgi-buffer-cast branch September 9, 2024 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants