mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
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:
parent
1a3ca7d8ac
commit
1638d797eb
1 changed files with 2 additions and 0 deletions
|
@ -1453,6 +1453,8 @@ namespace bgfx { namespace mtl
|
|||
|
||||
m_processedUniforms = false;
|
||||
m_numPredefined = 0;
|
||||
|
||||
m_renderPipelineStateCache.invalidate();
|
||||
}
|
||||
|
||||
UniformType::Enum convertMtlType(MTLDataType _type)
|
||||
|
|
Loading…
Reference in a new issue