[Bug 40267] ChoosePixelFormat and SetPixelFormat always fail on X11 with invalid format error

wine-bugs at winehq.org wine-bugs at winehq.org
Fri Nov 11 13:00:08 CST 2016


https://bugs.winehq.org/show_bug.cgi?id=40267

winetest at luukku.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |winetest at luukku.com

--- Comment #1 from winetest at luukku.com ---
Can you try this patch?

--- a/dlls/opengl32/wgl.c    
+++ a/dlls/opengl32/wgl.c    
@@ -443,7 +443,7 @@ INT WINAPI wglChoosePixelFormat(HDC hdc, const
PIXELFORMATDESCRIPTOR* ppfd)
     {
         if (!wglDescribePixelFormat( hdc, i, sizeof(format), &format ))
continue;

-        if (ppfd->iPixelType != format.iPixelType)
+        if ((ppfd->iPixelType == PFD_TYPE_COLORINDEX ? PFD_TYPE_COLORINDEX :
PFD_TYPE_RGBA) != format.iPixelType)
         {
             TRACE( "pixel type mismatch for iPixelFormat=%d\n", i );
             continue;


If it works for you then this bug is most likely a dupe of bug 14640.

-- 
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