Commit 1119c1ea authored by Martin Schultz's avatar Martin Schultz

fixed bad multiplier for trianlge rendering

parent 0a06c0ba
......@@ -319,7 +319,7 @@ draw(GLState& _state, const DrawModes::DrawMode& /*_drawMode*/)
_state.push_modelview_matrix();
_state.scale(size_);
glDrawArrays(GL_TRIANGLES, 0, int(text_.size() * 4) );
glDrawArrays(GL_TRIANGLES, 0, int(text_.size() * 6) );
_state.pop_modelview_matrix();
if (textMode_ == SCREEN_ALIGNED || textMode_ == SCREEN_ALIGNED_STATIC_SIZE) {
......@@ -641,7 +641,7 @@ getRenderObjects(ACG::IRenderer* _renderer, ACG::GLState& _state , const ACG::S
localMaterial.specularColor(ACG::Vec4f(0.0, 0.0, 0.0, 0.0 ));
ro.setMaterial(&localMaterial);
ro.glDrawArrays(GL_TRIANGLES, 0, static_cast<GLsizei>(text_.size()) * 4);
ro.glDrawArrays(GL_TRIANGLES, 0, static_cast<GLsizei>(text_.size()) * 6);
_renderer->addRenderObject(&ro);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment