Commit 586b7ab6 authored by Philip Trettner's avatar Philip Trettner

Merge branch 'develop' of https://www.graphics.rwth-aachen.de:9000/Glow/glow into develop

parents e1c480ed 736bc4f3
......@@ -421,14 +421,14 @@ struct wireframe
{
GLOW_NON_COPYABLE(wireframe);
GLint prevMode;
GLint prevMode[2];
wireframe(bool enable)
{
glGetIntegerv(GL_POLYGON_MODE, &prevMode);
glGetIntegerv(GL_POLYGON_MODE, prevMode);
glPolygonMode(GL_FRONT_AND_BACK, enable ? GL_LINE : GL_FILL);
}
~wireframe() { glPolygonMode(GL_FRONT_AND_BACK, prevMode); }
~wireframe() { glPolygonMode(GL_FRONT_AND_BACK, prevMode[0]); }
};
struct sampleCoverage
......
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