Disable depth mask when drawing text;

This commit is contained in:
bjorn 2017-10-15 09:16:13 -07:00
parent f5e8535726
commit 0d3bc4cfaa
1 changed files with 2 additions and 0 deletions

View File

@ -872,7 +872,9 @@ void lovrGraphicsPrint(const char* str, mat4 transform, float wrap, HorizontalAl
lovrGraphicsTranslate(MATRIX_MODEL, 0, offsety, 0);
lovrGraphicsBindTexture(font->texture);
lovrGraphicsSetDefaultShader(SHADER_FONT);
glDepthMask(GL_FALSE);
lovrGraphicsDrawPrimitive(GL_TRIANGLES, 0, 1, 0);
glDepthMask(GL_TRUE);
lovrGraphicsPop();
}