http://bugs.winehq.org/show_bug.cgi?id=17193
Summary: [PATCH] cope with missing wglGetExtensionsStringARB / wglGetPixelFormatAttribivARB Product: Wine Version: unspecified Platform: Other OS/Version: other Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: directx-d3d AssignedTo: wine-bugs@winehq.org ReportedBy: rmh@aybabtu.com
Created an attachment (id=19093) --> (http://bugs.winehq.org/attachment.cgi?id=19093) patch
Currently, WineD3D assumes wglGetExtensionsStringARB and wglGetPixelFormatAttribivARB are present, and if they're not, it will segfault when attempting to call them. This patch adds some checks so that:
- The pointers in GLINFO_LOCATION are set to NULL when a WGL function is not present (this was only done for GL ones). - Code paths exist to fail gracefully when either wglGetExtensionsStringARB or wglGetPixelFormatAttribivARB are unimplemented, disabling the functionality associated with them.
(This situation was found when using WineD3D with Chromium OpenGL as implemented in VirtualBox OSE 2.1)