Henri Verbeet : d3d8: Set WINED3D_RESOURCE_ACCESS_MAP on 2D textures.
Alexandre Julliard
julliard at winehq.org
Mon Feb 12 16:10:37 CST 2018
Module: wine
Branch: master
Commit: 405e25d5b495237eca366252e4fdad1f727e9061
URL: https://source.winehq.org/git/wine.git/?a=commit;h=405e25d5b495237eca366252e4fdad1f727e9061
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Sat Feb 10 01:00:42 2018 +0330
d3d8: Set WINED3D_RESOURCE_ACCESS_MAP on 2D textures.
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/d3d8/device.c | 2 +-
dlls/d3d8/texture.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/d3d8/device.c b/dlls/d3d8/device.c
index 160d296..613cb1e 100644
--- a/dlls/d3d8/device.c
+++ b/dlls/d3d8/device.c
@@ -1018,7 +1018,7 @@ static HRESULT d3d8_device_create_surface(struct d3d8_device *device, UINT width
desc.usage = usage & WINED3DUSAGE_MASK;
if (pool == D3DPOOL_SCRATCH)
desc.usage |= WINED3DUSAGE_SCRATCH;
- desc.access = wined3daccess_from_d3dpool(pool);
+ desc.access = wined3daccess_from_d3dpool(pool) | WINED3D_RESOURCE_ACCESS_MAP;
desc.width = width;
desc.height = height;
desc.depth = 1;
diff --git a/dlls/d3d8/texture.c b/dlls/d3d8/texture.c
index 5ad6cf8..6d212a5 100644
--- a/dlls/d3d8/texture.c
+++ b/dlls/d3d8/texture.c
@@ -1110,7 +1110,7 @@ HRESULT texture_init(struct d3d8_texture *texture, struct d3d8_device *device,
desc.usage |= WINED3DUSAGE_TEXTURE;
if (pool == D3DPOOL_SCRATCH)
desc.usage |= WINED3DUSAGE_SCRATCH;
- desc.access = wined3daccess_from_d3dpool(pool);
+ desc.access = wined3daccess_from_d3dpool(pool) | WINED3D_RESOURCE_ACCESS_MAP;
desc.width = width;
desc.height = height;
desc.depth = 1;
@@ -1157,7 +1157,7 @@ HRESULT cubetexture_init(struct d3d8_texture *texture, struct d3d8_device *devic
desc.usage |= WINED3DUSAGE_LEGACY_CUBEMAP | WINED3DUSAGE_TEXTURE;
if (pool == D3DPOOL_SCRATCH)
desc.usage |= WINED3DUSAGE_SCRATCH;
- desc.access = wined3daccess_from_d3dpool(pool);
+ desc.access = wined3daccess_from_d3dpool(pool) | WINED3D_RESOURCE_ACCESS_MAP;
desc.width = edge_length;
desc.height = edge_length;
desc.depth = 1;
More information about the wine-cvs
mailing list