Stefan Dösinger : wined3d: Call glFlush outside the GL lock.