mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
metal: initial (bad/slow) setShader tracking
This commit is contained in:
@@ -441,7 +441,9 @@ void Shader::attach()
|
||||
{
|
||||
if (current != this)
|
||||
{
|
||||
Graphics::flushBatchedDrawsGlobal();
|
||||
Graphics *gfx = Module::getInstance<Graphics>(Module::M_GRAPHICS);
|
||||
gfx->flushBatchedDrawsGlobal();
|
||||
gfx->attachShader(this);
|
||||
current = this;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user