mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
In DescriptorData() set nonsamp.type to D3D12DescriptorType::Undefined
If it defaults to zero then it would be treated as D3D12DescriptorType::Sampler which lead to a crash calling "Create" on an uninitialized descriptor
This commit is contained in:
@@ -326,6 +326,7 @@ union DescriptorData
|
||||
{
|
||||
nonsamp.resource = ResourceId();
|
||||
nonsamp.counterResource = ResourceId();
|
||||
nonsamp.type = D3D12DescriptorType::Undefined;
|
||||
}
|
||||
SamplerDescriptorData samp;
|
||||
NonSamplerDescriptorData nonsamp;
|
||||
|
||||
Reference in New Issue
Block a user