d3d: Fix a crash on a shader compile error.