http://bugs.winehq.org/show_bug.cgi?id=28249
Summary: opengl program failed in Mac OS X 10.7, dead block at pglXCreateGLXPixmap() Product: Wine Version: 1.3.27 Platform: x86 OS/Version: Mac OS X Status: UNCONFIRMED Severity: normal Priority: P2 Component: opengl AssignedTo: wine-bugs@winehq.org ReportedBy: drangon.mail@gmail.com
My windows program use OpenGL, it runs fine in Mac OS X 10.6.x, but failed to run in Mac OS X 10.7.
My windows program code fragment is :
----------------------------------------------- PIXELFORMATDESCRIPTOR pfd = { sizeof(PIXELFORMATDESCRIPTOR), 1, PFD_DRAW_TO_WINDOW | /*PFD_DOUBLEBUFFER |*/ PFD_SUPPORT_OPENGL, PFD_TYPE_RGBA, 24, 0,0,0,0,0,0, 0,0,0,0,0,0,0, 32, 0,0, PFD_MAIN_PLANE, 0, 0,0,0, };
int wglPixelFormat = ::ChoosePixelFormat(m_hDC, &pfd); BOOL bSuccess = ::SetPixelFormat(m_hDC, wglPixelFormat, &pfd); ---------------------------------------------
the function SetPixelFormat() doesn't return, the process dead blocked.
I dig into wine source, it is block in the following function call : pglXCreateGLXPixmap(display, vis, parent);