Commit 736bc4f3 authored by Kersten Schuster's avatar Kersten Schuster

Fixed invalid write bug in scoped wireframe.

parent ac6d56f9
......@@ -421,14 +421,14 @@ struct 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