Skip to content

Comments

Map DXGI HRESULTS to D3DERR HRESULTS so that d3d9 apps can react appropriately#102

Open
vdwtanner wants to merge 1 commit intomainfrom
user/tvandewalle/dxgiHRMapping
Open

Map DXGI HRESULTS to D3DERR HRESULTS so that d3d9 apps can react appropriately#102
vdwtanner wants to merge 1 commit intomainfrom
user/tvandewalle/dxgiHRMapping

Conversation

@vdwtanner
Copy link
Collaborator

D3D9 apps don't expect to receive DXGI HRESULTS, and D3D9 doesn't know to remap them either. This meant that when the error code was bubbled up to apps, they would often crash rather than trying to handle the error more gracefully.

The particular error I've seen reported was DXGI_ERROR_DEVICE_REMOVED, but I added a few more to the mapping for good measure.

@vdwtanner vdwtanner requested a review from jenatali February 21, 2026 01:15
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.

1 participant