metal: more robust render pass handling.

Initial implementation of captureScreenshot.
Fix getStats().shaderswitches.
Fix getStats().drawcalls.
This commit is contained in:
Alex Szpakowski
2021-04-04 23:47:58 -03:00
parent 8c88d645a3
commit 2ec9f88f7a
4 changed files with 136 additions and 85 deletions
+1 -1
View File
@@ -737,7 +737,7 @@ void Shader::attach()
{
Graphics *gfx = Graphics::getInstance();
gfx->flushBatchedDraws();
gfx->attachShader(this);
gfx->setShaderChanged();
current = this;
}
}