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

Video: Fix crash when getting the AA modes #11898

Merged
merged 1 commit into from Jun 8, 2023

Conversation

Filoppi
Copy link
Contributor

@Filoppi Filoppi commented Jun 7, 2023

DX12 would often crash when starting and stopping the emulation many times, due to the device enumerator failing for some reason. Checking for success fixes it.

DX12 would often crash when starting and stopping the emulation many times, due to the device enumerator failing for some reason. Checking for success fixes it.
@AdmiralCurtiss
Copy link
Contributor

Sounds reasonable.

@Pokechu22
Copy link
Contributor

Seems reasonable to me, but it'd be nice to know what the error being generated is. Can you add

ASSERT_MSG(VIDEO, SUCCEEDED(hr), "EnumAdapters failed: {}", DX12HRWrap(hr));

for testing and then see what it is? (It probably shouldn't be in the final version because a popup while loading the AA list would be annoying and not particularly helpful.)

@Filoppi
Copy link
Contributor Author

Filoppi commented Jun 8, 2023

Seems reasonable to me, but it'd be nice to know what the error being generated is.

The error in this case was that the device is "busy", if I remember correctly

@AdmiralCurtiss AdmiralCurtiss merged commit e4636ad into dolphin-emu:master Jun 8, 2023
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants