Fix bugs introduced by refactoring
This commit is contained in:
@@ -74,10 +74,9 @@ namespace OpenVulkano::Scene
|
||||
TextDrawable& textDrawable = m_texts.emplace_back(m_atlasData, config);
|
||||
// do not render glyph's background
|
||||
textDrawable.GetConfig().backgroundColor.a = 0;
|
||||
textDrawable.SetShader(&m_textShader);
|
||||
double lineHeight = m_atlasData->meta.lineHeight;
|
||||
|
||||
textDrawable.GenerateText(text, m_position);
|
||||
textDrawable.SetShader(&m_textShader);
|
||||
m_bbox.Grow(textDrawable.GetBoundingBox());
|
||||
// update position for next text entry
|
||||
m_position.y = m_bbox.GetMin().y - lineHeight;
|
||||
|
||||
Reference in New Issue
Block a user