Remove accidental inclusion of other fix.

This commit is contained in:
Dan Ginsburg 2018-01-16 10:31:29 -05:00
parent 79c4658ed6
commit 12736f5956

View File

@ -802,11 +802,11 @@ void MVKCmdClearAttachments::encode(MVKCommandEncoder* cmdEncoder) {
uint32_t caCnt = subpass->getColorAttachmentCount();
for (uint32_t caIdx = 0; caIdx < caCnt; caIdx++) {
VkFormat vkAttFmt = subpass->getColorAttachmentFormat(caIdx);
//if (_rpsKey.isEnabled(caIdx)) {
if (_rpsKey.isEnabled(caIdx)) {
_rpsKey.attachmentMTLPixelFormats[caIdx] = cmdPool->mtlPixelFormatFromVkFormat(vkAttFmt);
MTLClearColor mtlCC = mvkMTLClearColorFromVkClearValue(_vkClearValues[caIdx], vkAttFmt);
_clearColors[caIdx] = { (float)mtlCC.red, (float)mtlCC.green, (float)mtlCC.blue, (float)mtlCC.alpha};
//}
}
}
VkFormat vkAttFmt = subpass->getDepthStencilFormat();