mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 18:21:16 +02:00
Remove extraneous initialized check
This commit is contained in:
parent
51ff897ee5
commit
341e31a074
1 changed files with 1 additions and 3 deletions
|
@ -418,9 +418,7 @@ glm::vec2 Font::drawString(float x, float y, const QString & str,
|
||||||
const glm::vec4& color, TextRenderer::EffectType effectType,
|
const glm::vec4& color, TextRenderer::EffectType effectType,
|
||||||
const glm::vec2& bounds) {
|
const glm::vec2& bounds) {
|
||||||
|
|
||||||
if (!_initialized) {
|
setupGL();
|
||||||
setupGL();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Stores how far we've moved from the start of the string, in DTP units
|
// Stores how far we've moved from the start of the string, in DTP units
|
||||||
glm::vec2 advance(0, -_rowHeight - _descent);
|
glm::vec2 advance(0, -_rowHeight - _descent);
|
||||||
|
|
Loading…
Reference in a new issue