http://bugs.winehq.org/show_bug.cgi?id=9810
Summary: wined3d calls GDI and USER functions inside ENTER_GL/LEAVE_GL Product: Wine Version: unspecified Platform: Other OS/Version: other Status: NEW Severity: normal Priority: P2 Component: wine-directx-d3d AssignedTo: wine-bugs@winehq.org ReportedBy: julliard@winehq.org
No GDI or USER function should be called from inside an ENTER_GL/LEAVE_GL block.
The main offender seems to be the context management; it looks like it abuses ENTER_GL to also lock its own data structures, so it's probably not just a matter of removing the ENTER_GL blocks.