[PATCH] wined3d: Add a switch to preserve vertex buffer copy in system memory.
2012-07-01 10:10:17 GMT
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 . This will also affect upcoming games like MechWarrior Online, which are based on the same engine. As suggested , it would be good to have a switch to force preservation of vertex buffer copy in system memory . The new registry key is named PreserveVertexBufferSysMemCopy and is located in the Direct3D section.  http://bugs.winehq.org/show_bug.cgi?id=18799  http://bugs.winehq.org/show_bug.cgi?id=18799#c37  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(-)