projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
417c295
)
Don't generate spurious vs, move the enable a bit to do that.
author
Zack Rusin
<zack@tungstengraphics.com>
Thu, 13 Dec 2007 15:31:39 +0000
(10:31 -0500)
committer
Zack Rusin
<zack@tungstengraphics.com>
Thu, 13 Dec 2007 15:31:39 +0000
(10:31 -0500)
progs/vp/vp-tris.c
patch
|
blob
|
history
diff --git
a/progs/vp/vp-tris.c
b/progs/vp/vp-tris.c
index e5be65e78c5d1dabf7d9a0c4a2f116524e3d12b4..f9e6cdad74dce76d42d10534ce5a262f2454f57c 100644
(file)
--- 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);