mirror of
https://github.com/bjornbytes/lovr.git
synced 2024-07-04 21:43:34 +00:00
Use correct texture for fonts;
This commit is contained in:
parent
c4f6df11e8
commit
22526552dc
|
@ -147,7 +147,7 @@ void lovrFontPrint(Font* font, const char* str, float x, float y, float z, float
|
||||||
lovrGraphicsRotate(angle, ax, ay, az);
|
lovrGraphicsRotate(angle, ax, ay, az);
|
||||||
lovrGraphicsTranslate(0, -cy / 2, 0);
|
lovrGraphicsTranslate(0, -cy / 2, 0);
|
||||||
lovrGraphicsSetDepthTest(COMPARE_LEQUAL);
|
lovrGraphicsSetDepthTest(COMPARE_LEQUAL);
|
||||||
lovrGraphicsBindTexture(NULL);
|
lovrGraphicsBindTexture(font->texture);
|
||||||
lovrGraphicsSetShapeData(font->vertices.data, font->vertices.length);
|
lovrGraphicsSetShapeData(font->vertices.data, font->vertices.length);
|
||||||
lovrGraphicsDrawPrimitive(GL_TRIANGLES, 0, 1, 0);
|
lovrGraphicsDrawPrimitive(GL_TRIANGLES, 0, 1, 0);
|
||||||
lovrGraphicsSetDepthTest(oldCompareMode);
|
lovrGraphicsSetDepthTest(oldCompareMode);
|
||||||
|
|
Loading…
Reference in a new issue