[PATCH] wined3d: Add a switch to preserve vertex buffer copy in system memory.

Vincas Miliūnas vincas.miliunas at gmail.com
Sun Jul 1 05:10:17 CDT 2012

CryENGINEs 2 and 3 have a feature of accessing system memory copy of
vertex buffer after it's been unlocked, this leads to crashes when
running under WINE [1]. This will also affect upcoming games like
MechWarrior Online, which are based on the same engine.

As suggested [2], it would be good to have a switch to force
preservation of vertex buffer copy in system memory [3].

The new registry key is named PreserveVertexBufferSysMemCopy and is
located in the Direct3D section.

[1] http://bugs.winehq.org/show_bug.cgi?id=18799
[2] http://bugs.winehq.org/show_bug.cgi?id=18799#c37
[3] http://bugs.winehq.org/show_bug.cgi?id=18040#c21

 dlls/wined3d/buffer.c          |    5 +++++
 dlls/wined3d/wined3d_main.c    |    7 +++++++
 dlls/wined3d/wined3d_private.h |    1 +
 3 files changed, 13 insertions(+), 0 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-wined3d-Add-a-switch-to-preserve-vertex-buffer-copy-.patch
Type: text/x-patch
Size: 2056 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20120701/6d5aab69/attachment.bin>

More information about the wine-patches mailing list