Stefan Dösinger : wined3d: Check error conditions before creating the object.