d3d8: Do not add map access indiscriminately in cubetexture_init().
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
2aedcf3f8c
commit
66952c922c
|
@ -1155,8 +1155,7 @@ HRESULT cubetexture_init(struct d3d8_texture *texture, struct d3d8_device *devic
|
|||
if (pool == D3DPOOL_SCRATCH)
|
||||
desc.usage |= WINED3DUSAGE_SCRATCH;
|
||||
desc.bind_flags = wined3d_bind_flags_from_d3d8_usage(usage) | WINED3D_BIND_SHADER_RESOURCE;
|
||||
desc.access = wined3daccess_from_d3dpool(pool, usage)
|
||||
| WINED3D_RESOURCE_ACCESS_MAP_R | WINED3D_RESOURCE_ACCESS_MAP_W;
|
||||
desc.access = wined3daccess_from_d3dpool(pool, usage);
|
||||
desc.width = edge_length;
|
||||
desc.height = edge_length;
|
||||
desc.depth = 1;
|
||||
|
|
Loading…
Reference in New Issue