summaryrefslogtreecommitdiffstats
path: root/progs/trivial/quad-offset-unfilled.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2007-11-25 15:06:54 +0000
committerJosé Fonseca <[email protected]>2007-12-09 14:06:00 +0000
commitb1399a5dd20fad801ee10383143439f8cf4615db (patch)
tree7a8bc67ae96af42f5831e51ed5c29d7402fc2482 /progs/trivial/quad-offset-unfilled.c
parentb47836225185c8d2e2ccf3e191230304709d0a57 (diff)
gallium: more trivial tests
Diffstat (limited to 'progs/trivial/quad-offset-unfilled.c')
-rw-r--r--progs/trivial/quad-offset-unfilled.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/progs/trivial/quad-offset-unfilled.c b/progs/trivial/quad-offset-unfilled.c
index 32b2129727b..1ad44cdcaec 100644
--- a/progs/trivial/quad-offset-unfilled.c
+++ b/progs/trivial/quad-offset-unfilled.c
@@ -72,6 +72,8 @@ static void Draw(void)
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glEnable(GL_DEPTH_TEST);
+ glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
+
glEnable(GL_POLYGON_OFFSET_FILL);
@@ -95,7 +97,7 @@ static void Draw(void)
glVertex3f(-0.6, -0.6, -35.0);
glEnd();
- glEnable(GL_POLYGON_OFFSET_FILL);
+ glEnable(GL_POLYGON_OFFSET_LINE);
glPolygonOffset(-1, 0);
glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);