[Bug 27169] Crysis 1&2 crash on nvidia 540m card with X error BadMatch if using fbo

wine-bugs at winehq.org wine-bugs at winehq.org
Sat Jun 11 18:22:15 CDT 2011


--- Comment #4 from rocko <rockorequin at hotmail.com> 2011-06-11 18:22:15 CDT ---
I've tracked the problem to changing the pixel format
dlls/wined3d/context.c#context_set_pixel_format (called from context_create()),
where the code:

    /* By default WGL doesn't allow pixel format adjustments but we need it
     * here. For this reason there's a Wine specific wglSetPixelFormat()
     * which allows us to set the pixel format multiple times. Only use it
     * when really needed. */
    if (gl_info->supported[WGL_WINE_PIXEL_FORMAT_PASSTHROUGH])
        if (!GL_EXTCALL(wglSetPixelFormatWINE(dc, format, NULL)))

is being executed. ifdef'ing it out fixes the BadMatch X_GLXMakeContextCurrent

gl_info->supported[WGL_WINE_PIXEL_FORMAT_PASSTHROUGH] is being set to non-zero
on both the Intel and nvidia GPUs but on the nvidia it causes the subsequent
BadMatch error.

Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.

More information about the wine-bugs mailing list