wined3d: Use backup swapchain DC for devices created with desktop window.

Adam Jakubek ajakubek at gmail.com
Sun Sep 2 17:51:40 CDT 2012


Hi,

This patch causes wined3d to use backup swapchain DC when
IDirect3DDevice9 is created using the desktop window.
Windows allows to create such device as long its type is
D3DDEVTYPE_REF or D3DDEVTYPE_NULLREF.

Unpatched Wine will fail in IDirect3D9_CreateDevice method, since it
incorrectly uses the X root window.

Relevant d3d test case is included.
Patch closes bug #18490.

Regards,
Adam Jakubek

---
 dlls/d3d9/tests/device.c |   42 ++++++++++++++++++++++++++++++++++++++++++
 dlls/wined3d/context.c   |   10 +++++++---
 2 files changed, 49 insertions(+), 3 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-wined3d-Use-backup-swapchain-DC-for-devices-created-wi.txt
Type: text/x-patch
Size: 3080 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20120903/90c81dfb/attachment.bin>


More information about the wine-patches mailing list