mirror of
https://github.com/cemu-project/Cemu.git
synced 2024-11-29 20:44:18 +01:00
fix: buffer cache crash on shutdown
This commit is contained in:
parent
52062bd285
commit
d48de5b56f
@ -290,8 +290,7 @@ public:
|
|||||||
{
|
{
|
||||||
if (m_hasCacheAlloc)
|
if (m_hasCacheAlloc)
|
||||||
{
|
{
|
||||||
// HACK
|
cemu_assert_debug(isInUse() == false);
|
||||||
//cemu_assert_debug(isInUse() == false);
|
|
||||||
g_gpuBufferHeap->freeOffset(m_cacheOffset);
|
g_gpuBufferHeap->freeOffset(m_cacheOffset);
|
||||||
m_hasCacheAlloc = false;
|
m_hasCacheAlloc = false;
|
||||||
}
|
}
|
||||||
|
@ -676,6 +676,7 @@ void MetalRenderer::draw_execute(uint32 baseVertex, uint32 baseInstance, uint32
|
|||||||
// TODO: uncomment
|
// TODO: uncomment
|
||||||
//if (m_state.m_skipDrawSequence)
|
//if (m_state.m_skipDrawSequence)
|
||||||
//{
|
//{
|
||||||
|
// LatteGPUState.drawCallCounter++;
|
||||||
// return;
|
// return;
|
||||||
//}
|
//}
|
||||||
|
|
||||||
@ -811,6 +812,8 @@ void MetalRenderer::draw_execute(uint32 baseVertex, uint32 baseInstance, uint32
|
|||||||
{
|
{
|
||||||
renderCommandEncoder->drawPrimitives(mtlPrimitiveType, baseVertex, count, instanceCount, baseInstance);
|
renderCommandEncoder->drawPrimitives(mtlPrimitiveType, baseVertex, count, instanceCount, baseInstance);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LatteGPUState.drawCallCounter++;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MetalRenderer::draw_endSequence()
|
void MetalRenderer::draw_endSequence()
|
||||||
|
Loading…
Reference in New Issue
Block a user