[Bug 9810] wined3d calls GDI and USER functions inside ENTER_GL/LEAVE_GL