H. Verbeet : wined3d: return D3DERR_INVALIDCALL when calling BeginStateBlock and