New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RenderWindow.resetGLStates does not reset glPolygonMode #480

Closed
divinours opened this Issue Oct 14, 2013 · 1 comment

Comments

Projects
None yet
2 participants
@divinours

divinours commented Oct 14, 2013

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.

@ghost ghost assigned LaurentGomila Oct 14, 2013

@LaurentGomila

This comment has been minimized.

Show comment
Hide comment
@LaurentGomila

LaurentGomila Oct 14, 2013

Member

Thanks.

Member

LaurentGomila commented Oct 14, 2013

Thanks.

LaurentGomila added a commit that referenced this issue Oct 14, 2013

jcowgill added a commit to jcowgill/SFML that referenced this issue Sep 22, 2014

Fixed RenderTarget::resetGLStates() not explicitly setting the defaul…
…t polygon mode (glPolygonMode) (SFML#480)

(cherry picked from commit 08b49cc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment