shadow: improve DXGI 1.2 error checking