Matteo Bruni : wined3d: Check for error conditions in GL call.