libs/vkd3d: Initialize "resource->external" before possible call to d3d12_resource_destroy().

This commit is contained in:
Józef Kucia 2016-10-20 16:38:04 +02:00
parent fd9f1abb4f
commit 33ef8688ab

View File

@ -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;