mirror of
https://github.com/love2d/love.git
synced 2026-08-18 11:44:15 +02:00
Fix love.graphics.drawLayer.
--HG-- branch : minor
This commit is contained in:
@@ -45,11 +45,14 @@ void Text::draw(Graphics *gfx, const Matrix4 &m)
|
||||
if (vbo == nullptr || draw_commands.empty())
|
||||
return;
|
||||
|
||||
gfx->flushStreamDraws();
|
||||
|
||||
if (Shader::isDefaultActive())
|
||||
Shader::attachDefault(Shader::STANDARD_DEFAULT);
|
||||
|
||||
if (Shader::current)
|
||||
Shader::current->checkMainTextureType(TEXTURE_2D, false);
|
||||
|
||||
gfx->flushStreamDraws();
|
||||
|
||||
OpenGL::TempDebugGroup debuggroup("Text object draw");
|
||||
|
||||
// Re-generate the text if the Font's texture cache was invalidated.
|
||||
|
||||
Reference in New Issue
Block a user