Do not kill pipeline when fragment shader is invalid.

This commit is contained in:
Philip Rideout 2018-07-24 13:23:43 -07:00 committed by GitHub
parent 00e84bbf11
commit 93ff3564b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -287,7 +287,6 @@ MTLRenderPipelineDescriptor* MVKGraphicsPipeline::getMTLRenderPipelineDescriptor
id<MTLFunction> mtlFunction = mvkShdrMod->getMTLFunction(&shaderContext, pSS->pSpecializationInfo, _pipelineCache).mtlFunction;
if ( !mtlFunction ) {
setConfigurationResult(mvkNotifyErrorWithText(VK_ERROR_INITIALIZATION_FAILED, "Fragment shader function could not be compiled into pipeline. See previous error."));
return nil;
}
plDesc.fragmentFunction = mtlFunction;
}