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

Prevent D3D12 crash if no debug layer support #817

Merged
merged 1 commit into from
Oct 10, 2023

Conversation

SunDaw
Copy link
Contributor

@SunDaw SunDaw commented Oct 9, 2023

On PCs without debug layer support D3D12GetDebugInterface fails and leaves debugController a null-pointer, causing crashes. In this case simply avoiding attempting to enable debug layers seems simplest

Also adds a check that device creation succeeds to improve error messages

@RobDangerous RobDangerous merged commit 46c7ebd into Kode:main Oct 10, 2023
19 of 20 checks passed
@SunDaw SunDaw deleted the d3d12-nodebug branch October 10, 2023 16:24
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.

2 participants