From: Vinson Lee Date: Wed, 7 Oct 2009 13:54:31 +0000 (-0600) Subject: progs/test: Fix MSVC build. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4b3cbecb3a87374a292a7e454cd959e8c1eac322;p=mesa.git progs/test: Fix MSVC build. --- diff --git a/progs/tests/random.c b/progs/tests/random.c index 4023674c05f..604b4d4088c 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);