From: Ian Romanick Date: Tue, 15 Nov 2005 01:55:46 +0000 (+0000) Subject: Two subtle things missed on the previous commit. X-Git-Tag: 062012170305~21697 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5ef524cd01822dfaf645f3baa659f36b384e809e;p=profile%2Fivi%2Fmesa.git Two subtle things missed on the previous commit. --- diff --git a/progs/tests/interleave.c b/progs/tests/interleave.c index 4797139..e98b3ed 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",