projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3fff3d
)
progs/test: Fix MSVC build.
author
Vinson Lee
<vlee@vmware.com>
Wed, 7 Oct 2009 13:54:31 +0000
(07:54 -0600)
committer
Brian Paul
<brianp@vmware.com>
Wed, 7 Oct 2009 13:54:31 +0000
(07:54 -0600)
progs/tests/random.c
patch
|
blob
|
history
diff --git
a/progs/tests/random.c
b/progs/tests/random.c
index 4023674c05f7e5e43251801f1a549b2b9ff20cde..604b4d4088cc53a4cd09c6ba7fd1e9390c0b8d9b 100644
(file)
--- a/
progs/tests/random.c
+++ b/
progs/tests/random.c
@@
-257,11
+257,11
@@
RandomPrimitive(void)
Vcount++;
for (i = 0; i < len; i++) {
+ int k = RandomInt(9);
Vbuffer[Vcount].v[0] = RandomFloat(-3, 3);
Vbuffer[Vcount].v[1] = RandomFloat(-3, 3);
Vbuffer[Vcount].v[2] = RandomFloat(-3, 3);
Vbuffer[Vcount].v[3] = RandomFloat(-3, 3);
- int k = RandomInt(9);
switch (k) {
case 0:
glVertex2fv(Vbuffer[Vcount].v);