[wined3d] Implement swapchains.
oliver_stieber at yahoo.co.uk
Sat Mar 12 12:10:09 CST 2005
This patch implements swapchains in wined3d (and d3d9)
Front,back,stencil buffers and render targets now work in wined3d and have been removed from d3d9..
GetDeviceCaps has been re-worked in keeping with GetDesc to make it easier to support multiple versions of DirectX
Swapchains are almost correct but there's an issue with the context state that prevents you from getting any lighting in additional swapchains, I intend to put this in a contextManager
Multiple windows should also work, and you can give present a different HWND from the one the device/swapchain was created with,
for now doing so will drop the first frame as X doesn't support GLX1.3 and I haven't implemented copypixels to transfer the data to the new window context.
The large block of #if 0'd code in device.c:active_render is based on the code in d3d8 and should add support for 'proper' offscreen textures work, but leaks with ATI's drivers so I've blocked it out.,
it will be moved to a more efficient implementation in the to be writen gl context manager at some point, but is there if anyone wants to try and make it work.
It depends on wined3d_interface_seperation_part2_os_1.patch because of the members moved from currentDesc to resource.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050312/8fa3b207/attachment.pgp
More information about the wine-patches