Kode / Kinc

Modern low level game library and hardware abstraction.
http://kinc.tech
zlib License
517 stars 119 forks source link

Prevent D3D12 crash if no debug layer support #817

Closed SunDaw closed 1 year ago

SunDaw commented 1 year ago

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