Fixed compile warning.

This commit is contained in:
Dean Butcher
2020-08-15 20:05:58 -03:00
parent 9ee05dda15
commit 6ccb76e4c8

View File

@@ -145,7 +145,7 @@ int main()
texture,
glm::ivec2(face->glyph->bitmap.width, face->glyph->bitmap.rows),
glm::ivec2(face->glyph->bitmap_left, face->glyph->bitmap_top),
face->glyph->advance.x
static_cast<unsigned int>(face->glyph->advance.x)
};
Characters.insert(std::pair<char, Character>(c, character));
}
@@ -258,4 +258,3 @@ void RenderText(Shader &shader, std::string text, float x, float y, float scale,
glBindVertexArray(0);
glBindTexture(GL_TEXTURE_2D, 0);
}