Added invalidation of renderpipeline state cache. In case the program object gets re-used the cache can return invalid instances of the descriptor.

This commit is contained in:
Marco Weber 2015-11-12 12:20:02 +00:00
parent 1a3ca7d8ac
commit 1638d797eb

View file

@ -1453,6 +1453,8 @@ namespace bgfx { namespace mtl
m_processedUniforms = false;
m_numPredefined = 0;
m_renderPipelineStateCache.invalidate();
}
UniformType::Enum convertMtlType(MTLDataType _type)