WGL: WGL_WINE_pixel_format_passthrough

Roderick Colenbrander thunderbird2k at gmx.net
Tue Apr 22 15:18:02 CDT 2008


This is an updated version of the pixel format passthrough patch which I submitted a while ago. Compared to the previous version it should prevent resource leakages (no more leaking of a pixmap or composite window).

Since the unleashing of additional WGL pixel formats, WineD3D can use multiple pixel formats too. Direct3D sets the pixel format at device creation time BUT it can also be set again on a device reset. In other words the pixel format can be changed.

WGL only allows you to set the pixel format once for a HDC. This requires a WINE-specific WGL extension which allows us to set the pixel format again. The patch does this and it works correctly in DirectX8/9 SDK samples.

Roderick Colenbrander
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-a-wine-specific-WGL-extension-which-allows-you-t.patch
Type: text/x-patch
Size: 0 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080422/e5e8ad64/attachment.bin 

More information about the wine-patches mailing list