mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-08 07:41:12 +00:00
Fix sanitisation of aspect mask in subresource range
This commit is contained in:
@@ -1303,7 +1303,9 @@ struct ImageSubresourceRange
|
||||
RDCERR("Invalid aspect mask (%s) in image with aspects (%s)", ToStr(aspectMask).c_str(),
|
||||
ToStr(info.Aspects()).c_str());
|
||||
}
|
||||
aspectMask &= ~info.Aspects();
|
||||
aspectMask &= info.Aspects();
|
||||
if(aspectMask == 0)
|
||||
aspectMask = info.Aspects();
|
||||
}
|
||||
SanitiseLevelRange(baseMipLevel, levelCount, info.levelCount);
|
||||
SanitiseLayerRange(baseArrayLayer, layerCount, info.layerCount);
|
||||
|
||||
Reference in New Issue
Block a user