summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2015-07-20 14:17:23 -0600
committerBrian Paul <brianp@vmware.com>2015-07-20 14:17:25 -0600
commit7f15fef7bef015492a2e88f359c1a0fd84082046 (patch)
treecda0e238ba14863a6970e6c8cfd50fe3cf4d29eb
parent3d5e8e181a3d65ffd41a17110a8e552244d9f7bd (diff)
downloadmesa-demos-7f15fef7bef015492a2e88f359c1a0fd84082046.zip
mesa-demos-7f15fef7bef015492a2e88f359c1a0fd84082046.tar.xz
quad-offset-unfilled: fix GL_POLYGON_OFFSET_FILL/LINE mistake
The glDisable() should match the preceeding glEnable(). Found by Neha Bhende.
-rw-r--r--src/trivial/quad-offset-unfilled.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/trivial/quad-offset-unfilled.c b/src/trivial/quad-offset-unfilled.c
index a1f2138..3ff235e 100644
--- a/src/trivial/quad-offset-unfilled.c
+++ b/src/trivial/quad-offset-unfilled.c
@@ -112,7 +112,7 @@ static void Draw(void)
glEnd();
- glDisable(GL_POLYGON_OFFSET_FILL);
+ glDisable(GL_POLYGON_OFFSET_LINE);
glFlush();