Skip to content

RenderWindow.resetGLStates does not reset glPolygonMode #480

Closed
@divinours

Description

@divinours

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    RenderWindow.resetGLStates does not reset glPolygonMode · Issue #480 · SFML/SFML