From: Zack Rusin Date: Thu, 13 Dec 2007 15:31:39 +0000 (-0500) Subject: Don't generate spurious vs, move the enable a bit to do that. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6f111e9c81a0c28f057092836a3b7fc6100cdb6d;p=mesa.git Don't generate spurious vs, move the enable a bit to do that. --- diff --git a/progs/vp/vp-tris.c b/progs/vp/vp-tris.c index e5be65e78c5..f9e6cdad74d 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);