Be more relaxed in check_image_access

This commit is contained in:
Pierre Krieger 2017-05-13 11:51:32 +02:00
parent 2006e2cbc9
commit b84ee5fcd0

View File

@ -803,7 +803,7 @@ unsafe impl<I> CommandBuffer for SubmitSyncLayer<I> where I: CommandBuffer {
continue;
}
if value.final_layout != layout {
if layout != Layout::Undefined && value.final_layout != layout {
return Err(AccessCheckError::Denied(AccessError::UnexpectedImageLayout {
allowed: value.final_layout,
requested: layout,