mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
libs/vkd3d: Initialize "resource->external" before possible call to d3d12_resource_destroy().
This commit is contained in:
parent
fd9f1abb4f
commit
33ef8688ab
@ -654,6 +654,8 @@ static HRESULT d3d12_committed_resource_init(struct d3d12_resource *resource, st
|
|||||||
if (optimized_clear_value)
|
if (optimized_clear_value)
|
||||||
FIXME("Ignoring optimized clear value.\n");
|
FIXME("Ignoring optimized clear value.\n");
|
||||||
|
|
||||||
|
resource->external = false;
|
||||||
|
|
||||||
switch (desc->Dimension)
|
switch (desc->Dimension)
|
||||||
{
|
{
|
||||||
case D3D12_RESOURCE_DIMENSION_BUFFER:
|
case D3D12_RESOURCE_DIMENSION_BUFFER:
|
||||||
@ -685,7 +687,6 @@ static HRESULT d3d12_committed_resource_init(struct d3d12_resource *resource, st
|
|||||||
return E_INVALIDARG;
|
return E_INVALIDARG;
|
||||||
}
|
}
|
||||||
|
|
||||||
resource->external = false;
|
|
||||||
resource->map_count = 0;
|
resource->map_count = 0;
|
||||||
resource->map_data = NULL;
|
resource->map_data = NULL;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user