Closed
Description
In the following code:
glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
glBegin(GL_TRIANGLES);
... draw stuff...
glEnd();
window.pushGLStates();
window.resetGLStates();
sf::Text myText;
... init text position/color/etc...
window.draw(myText);
window.popGLStates();
The SFML text does not render. Adding:
glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
before calling window.draw solves the problem.
Activity
LaurentGomila commentedon Oct 14, 2013
Thanks.
Fixed RenderTarget::resetGLStates() not explicitly setting the defaul…
Fixed RenderTarget::resetGLStates() not explicitly setting the defaul…