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

use ComPtr for D3D9 #19413

Merged
merged 1 commit into from
Sep 18, 2024
Merged

use ComPtr for D3D9 #19413

merged 1 commit into from
Sep 18, 2024

Conversation

oltolm
Copy link
Contributor

@oltolm oltolm commented Aug 25, 2024

I made the D3D9 code use Microsofts ComPtr. It's a smart pointer for COM objects.

@hrydgard hrydgard added the Code Cleanup Cleanup to make future work easier. Needs to be done sometimes. label Aug 27, 2024
@hrydgard
Copy link
Owner

I guess the benefit would be slightly less chance of leaks? Worth the risk for bugs, maybe? I'll think about merging it.

@hrydgard
Copy link
Owner

Tested it briefly, seems fine. Let's get it in.

@hrydgard hrydgard added this to the v1.18.0 milestone Sep 18, 2024
@hrydgard hrydgard merged commit fb80ad6 into hrydgard:master Sep 18, 2024
19 checks passed
@oltolm oltolm deleted the d3d9_com_ptr branch September 18, 2024 11:04
@oltolm oltolm mentioned this pull request Oct 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Cleanup Cleanup to make future work easier. Needs to be done sometimes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants