wined3d: Get rid of the redundant WINED3D_TEXTURE_CREATE_MAPPABLE flag in surface_convert_format().

We already set WINED3D_RESOURCE_ACCESS_MAP_R | WINED3D_RESOURCE_ACCESS_MAP_W.

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2018-11-23 19:00:48 +03:30 committed by Alexandre Julliard
parent 9863c9a46f
commit 926c554d94
1 changed files with 1 additions and 2 deletions

View File

@ -640,8 +640,7 @@ static struct wined3d_texture *surface_convert_format(struct wined3d_texture *sr
desc.height = wined3d_texture_get_level_height(src_texture, texture_level); desc.height = wined3d_texture_get_level_height(src_texture, texture_level);
desc.depth = 1; desc.depth = 1;
desc.size = 0; desc.size = 0;
if (FAILED(wined3d_texture_create(device, &desc, 1, 1, if (FAILED(wined3d_texture_create(device, &desc, 1, 1, WINED3D_TEXTURE_CREATE_DISCARD,
WINED3D_TEXTURE_CREATE_MAPPABLE | WINED3D_TEXTURE_CREATE_DISCARD,
NULL, NULL, &wined3d_null_parent_ops, &dst_texture))) NULL, NULL, &wined3d_null_parent_ops, &dst_texture)))
{ {
ERR("Failed to create a destination texture for conversion.\n"); ERR("Failed to create a destination texture for conversion.\n");