Flip font texture vertically on atlas creation

This commit is contained in:
2016-06-29 14:04:35 +10:00
parent e03d3fd14a
commit ef112fa4cb
3 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -210,7 +210,7 @@ const i32 asset_loadTTFont(const char *filePath)
i32 glyphsRemaining = numGlyphs;
i32 glyphsOnCurrRow = glyphsPerRow;
for (i32 row = 0; row < MAX_TEXTURE_SIZE; row++)
for (i32 row = MAX_TEXTURE_SIZE-1; row >= 0; row--)
{
u32 *destRow = fontBitmap + (row * MAX_TEXTURE_SIZE);
for (i32 glyphIndex = 0; glyphIndex < glyphsOnCurrRow;