Mesa (master): progs/test: Fix MSVC build.

Nicolai Hähnle nh at kemper.freedesktop.org
Wed Oct 7 18:39:38 UTC 2009


Module: Mesa
Branch: master
Commit: 4b3cbecb3a87374a292a7e454cd959e8c1eac322
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4b3cbecb3a87374a292a7e454cd959e8c1eac322

Author: Vinson Lee <vlee at vmware.com>
Date:   Wed Oct  7 07:54:31 2009 -0600

progs/test: Fix MSVC build.

---

 progs/tests/random.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/progs/tests/random.c b/progs/tests/random.c
index 4023674..604b4d4 100644
--- 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);




More information about the mesa-commit mailing list