MVKImage: Fix inverted condition.
This commit is contained in:
parent
da981be45b
commit
dc79e75379
@ -1424,7 +1424,7 @@ MVKImageView::MVKImageView(MVKDevice* device,
|
||||
}
|
||||
if ( !mvkIsAnyFlagEnabled(_usage, VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT) ) {
|
||||
setConfigurationResult(reportError(VK_ERROR_FEATURE_NOT_PRESENT, "vkCreateImageView(): 2D views on 3D images can only be used as color attachments."));
|
||||
} else if (mvkIsOnlyAnyFlagEnabled(_usage, VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT)) {
|
||||
} else if (!mvkIsOnlyAnyFlagEnabled(_usage, VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT)) {
|
||||
reportError(VK_ERROR_FEATURE_NOT_PRESENT, "vkCreateImageView(): 2D views on 3D images can only be used as color attachments.");
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user