Minor Metal backend change

This commit is contained in:
Jack Andersen 2017-03-19 19:08:19 -10:00
parent 5f903c09ee
commit 9a7cadce3a

View File

@ -1294,6 +1294,8 @@ IShaderPipeline* MetalDataFactory::Context::newShaderPipeline(const char* vertSo
ZTest depthTest, bool depthWrite, bool colorWrite, ZTest depthTest, bool depthWrite, bool colorWrite,
bool alphaWrite, CullMode culling) bool alphaWrite, CullMode culling)
{ {
@autoreleasepool
{
MetalData* d = MetalDataFactoryImpl::m_deferredData.get(); MetalData* d = MetalDataFactoryImpl::m_deferredData.get();
MetalDataFactoryImpl& factory = static_cast<MetalDataFactoryImpl&>(m_parent); MetalDataFactoryImpl& factory = static_cast<MetalDataFactoryImpl&>(m_parent);
MTLCompileOptions* compOpts = [MTLCompileOptions new]; MTLCompileOptions* compOpts = [MTLCompileOptions new];
@ -1362,6 +1364,7 @@ IShaderPipeline* MetalDataFactory::Context::newShaderPipeline(const char* vertSo
colorWrite, alphaWrite, culling); colorWrite, alphaWrite, culling);
d->m_SPs.emplace_back(retval); d->m_SPs.emplace_back(retval);
return retval; return retval;
}
} }
IShaderDataBinding* IShaderDataBinding*