Matteo Bruni : wined3d: Fix some flag checks.