From 22526552dcd3c527b2b17c75b2cb74e00902b73a Mon Sep 17 00:00:00 2001 From: bjorn Date: Tue, 14 Mar 2017 02:32:01 -0700 Subject: [PATCH] Use correct texture for fonts; --- src/graphics/font.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphics/font.c b/src/graphics/font.c index 19267d40..6d448d98 100644 --- a/src/graphics/font.c +++ b/src/graphics/font.c @@ -147,7 +147,7 @@ void lovrFontPrint(Font* font, const char* str, float x, float y, float z, float lovrGraphicsRotate(angle, ax, ay, az); lovrGraphicsTranslate(0, -cy / 2, 0); lovrGraphicsSetDepthTest(COMPARE_LEQUAL); - lovrGraphicsBindTexture(NULL); + lovrGraphicsBindTexture(font->texture); lovrGraphicsSetShapeData(font->vertices.data, font->vertices.length); lovrGraphicsDrawPrimitive(GL_TRIANGLES, 0, 1, 0); lovrGraphicsSetDepthTest(oldCompareMode);