http://bugs.winehq.org/show_bug.cgi?id=20807
Summary: SolidWorks 2008 can't render parts Product: Wine Version: 1.1.33 Platform: PC OS/Version: Mac OS X 10.6 Status: UNCONFIRMED Severity: normal Priority: P2 Component: opengl AssignedTo: wine-bugs@winehq.org ReportedBy: cdavis@mines.edu
Created an attachment (id=24921) --> (http://bugs.winehq.org/attachment.cgi?id=24921) Wine 1.1.32-641-ga7bfd6d Log +wgl on Mac OS X
When you create a part, SolidWorks attempts to create a bitmap GL context to do offscreen rendering. The call to SetPixelFormat() on the bitmap DC fails, however, because the depth of the pixmap (32) doesn't match the depth of the visual that winex11 chose (24). (You can add a trace to create_bitmap_glxpixmap() to see this for yourself.) SolidWorks, however, does not check the result of SetPixelFormat(), expecting it to succeed, so it goes ahead and tries to create a GL context. This fails because no pixel format is set in the DC. As a result, no rendering of parts is done.
I've attached a log showing what happens. There's a second issue that is demonstrated by that log, so I'm going to file another bug shortly.
I think this is somehow related to Roderick Colenbrander's Xrender patches, given that we're dealing with a 32-bit pixmap (which wasn't possible until Xrender support was added).