diff options
Diffstat (limited to 'xc/extras/Mesa/src/varray.c')
-rw-r--r-- | xc/extras/Mesa/src/varray.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/xc/extras/Mesa/src/varray.c b/xc/extras/Mesa/src/varray.c index 68578a680..42734596f 100644 --- a/xc/extras/Mesa/src/varray.c +++ b/xc/extras/Mesa/src/varray.c @@ -1,4 +1,4 @@ -/* $Id: varray.c,v 1.4 2000/01/30 00:27:02 brianp Exp $ */ +/* $Id: varray.c,v 1.5 2000/02/12 23:09:23 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -37,6 +37,7 @@ #include "macros.h" #include "mmath.h" #include "pipeline.h" +#include "state.h" #include "texstate.h" #include "translate.h" #include "types.h" @@ -1121,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 ); @@ -1128,6 +1136,9 @@ _mesa_DrawRangeElements(GLenum mode, GLuint start, } else { glDrawElements( mode, count, type, indices ); } +#else + glDrawElements( mode, count, type, indices ); +#endif } |