diff --git a/src/GPUFontAtlasLayerCombo.cpp b/src/GPUFontAtlasLayerCombo.cpp index 2e890b5..1bb6286 100644 --- a/src/GPUFontAtlasLayerCombo.cpp +++ b/src/GPUFontAtlasLayerCombo.cpp @@ -119,21 +119,6 @@ void GPUFontAtlasLayerCombo::abandonChild(shared_ptr layer){ }), layers.end()); isDirty = true; - // update the text - // this doesn't happen very often, so let's just - // iterate over all layers and calculate fresh - //std::string text = ""; - //totalCharacters = 0; - //for(const auto & layer : layers){ - // std::string layerText = layer->getProps().text; - // totalCharacters += layerText.length(); - // text += layerText; - //} - //removeDuplicateCharacters(text); - //mainText = text; - // NOTE: we do not want to update buffers now, - // as it's probably more costly than just keeping - // the old glyphs around... } const ComboIdentifier & GPUFontAtlasLayerCombo::getIdentifier() const { return identifier; @@ -162,15 +147,6 @@ void GPUFontAtlasLayerCombo::draw(){ glm::mat4 view = transform.getViewMatrix(); glm::mat4 model = glm::mat4(1.0f); - //{ // Draw background. - //GLuint program = backgroundShader->program; - //glUseProgram(program); - //glBindVertexArray(emptyVAO); - //glDrawArrays(GL_TRIANGLE_STRIP, 0, 4); - //glBindVertexArray(0); - //glUseProgram(0); - //} - // Uses premultiplied-alpha. glEnable(GL_BLEND); glBlendEquation(GL_FUNC_ADD);