summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2005-11-15 01:55:46 +0000
committerIan Romanick <[email protected]>2005-11-15 01:55:46 +0000
commit5ef524cd01822dfaf645f3baa659f36b384e809e (patch)
tree11c6c60a7a43f8db9898e3d3d37f9c19866ac489
parenta163256cc22cc914c8b6e0b4832ffcf308d37c7d (diff)
Two subtle things missed on the previous commit.
-rw-r--r--progs/tests/interleave.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/progs/tests/interleave.c b/progs/tests/interleave.c
index 4797139aa95..e98b3ed0469 100644
--- a/progs/tests/interleave.c
+++ b/progs/tests/interleave.c
@@ -280,12 +280,15 @@ static void Display( void )
glTranslatef(3.0, 0, 0);
+ /* The masking with ~0x2A00 is a bit of a hack to make sure that format
+ * ends up with an invalid value no matter what rand() returns.
+ */
format = (use_invalid_mode)
? (rand() & ~0x2A00) : GL_V2F + interleave_mode;
stride = (use_invalid_stride) ? -abs(rand()) : 0;
(void) glGetError();
- glInterleavedArrays( format, 0, data );
+ glInterleavedArrays( format, stride, data );
err = glGetError();
if ( err ) {
printf("glInterleavedArrays(0x%04x, %d, %p) generated the error 0x%04x\n",