diff options
author | Brian Paul <[email protected]> | 2000-02-05 02:05:14 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2000-02-05 02:05:14 +0000 |
commit | df37c6bd65dcc76b775af84252c622dbc71e4b35 (patch) | |
tree | bfeda8b8c86a5ea4db6bfc6bc4d2d01070e89ee8 /src/mesa/main/varray.c | |
parent | e69f1f54f9506210c58f104db80adadca0b1fe2c (diff) |
disabled locked arrays in glDrawRangeElements()
Diffstat (limited to 'src/mesa/main/varray.c')
-rw-r--r-- | src/mesa/main/varray.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c index 31c378aac08..328f22d97c8 100644 --- a/src/mesa/main/varray.c +++ b/src/mesa/main/varray.c @@ -1,4 +1,4 @@ -/* $Id: varray.c,v 1.19 2000/02/02 19:17:57 brianp Exp $ */ +/* $Id: varray.c,v 1.20 2000/02/05 02:05:14 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -1122,6 +1122,13 @@ _mesa_DrawRangeElements(GLenum mode, GLuint start, return; } +#if 0 + /* + * XXX something in locked arrays is broken! If start = 0, + * end = 1 and count = 2 we'll take the LockArrays path and + * get incorrect results. See Scott McMillan's bug of 3 Jan 2000. + * For now, don't use locked arrays. + */ if (!ctx->Array.LockCount && 2*count > (GLint) 3*(end-start)) { glLockArraysEXT( start, end ); glDrawElements( mode, count, type, indices ); @@ -1129,6 +1136,9 @@ _mesa_DrawRangeElements(GLenum mode, GLuint start, } else { glDrawElements( mode, count, type, indices ); } +#else + glDrawElements( mode, count, type, indices ); +#endif } |