summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZack Rusin <zack@tungstengraphics.com>2007-12-13 10:31:39 -0500
committerZack Rusin <zack@tungstengraphics.com>2007-12-13 10:31:39 -0500
commit6f111e9c81a0c28f057092836a3b7fc6100cdb6d (patch)
treee51cf23e2dee27010b4ebe22c0601de03cf3ea5f
parent417c2953339bc281f0ac486777afbbd00a385294 (diff)
downloadexternal_mesa3d-6f111e9c81a0c28f057092836a3b7fc6100cdb6d.zip
external_mesa3d-6f111e9c81a0c28f057092836a3b7fc6100cdb6d.tar.gz
external_mesa3d-6f111e9c81a0c28f057092836a3b7fc6100cdb6d.tar.bz2
Don't generate spurious vs, move the enable a bit to do that.
-rw-r--r--progs/vp/vp-tris.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/progs/vp/vp-tris.c b/progs/vp/vp-tris.c
index e5be65e..f9e6cda 100644
--- a/progs/vp/vp-tris.c
+++ b/progs/vp/vp-tris.c
@@ -90,7 +90,9 @@ static void Init( void )
}
fprintf(stderr, "%.*s\n", sz, buf);
-
+
+ glEnable(GL_VERTEX_PROGRAM_NV);
+
glGenProgramsARB(1, &prognum);
glBindProgramARB(GL_VERTEX_PROGRAM_ARB, prognum);
@@ -168,8 +170,6 @@ static void Display( void )
glClearColor(0.3, 0.3, 0.3, 1);
glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
- glEnable(GL_VERTEX_PROGRAM_NV);
-
glBegin(GL_TRIANGLES);