mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-09-13 09:16:14 -07: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)
|
||||
FIXME("Ignoring optimized clear value.\n");
|
||||
|
||||
resource->external = false;
|
||||
|
||||
switch (desc->Dimension)
|
||||
{
|
||||
case D3D12_RESOURCE_DIMENSION_BUFFER:
|
||||
@ -685,7 +687,6 @@ static HRESULT d3d12_committed_resource_init(struct d3d12_resource *resource, st
|
||||
return E_INVALIDARG;
|
||||
}
|
||||
|
||||
resource->external = false;
|
||||
resource->map_count = 0;
|
||||
resource->map_data = NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user