diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2001-02-07 16:00:58 +0000 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2001-02-07 16:00:58 +0000 |
commit | b8e1c70ec104f51f9a8e763bd8c582d3ff5c1d8d (patch) | |
tree | 38efe49e6134aa27179a414422ad8306651c0a3e /src | |
parent | fb1565bcddc131c687d6ceec9495c82420ae67bb (diff) |
Correctly calculate size for disabled texcoord arrays.
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/array_cache/ac_import.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/array_cache/ac_import.c b/src/mesa/array_cache/ac_import.c index feacaff166..ad39f6b511 100644 --- a/src/mesa/array_cache/ac_import.c +++ b/src/mesa/array_cache/ac_import.c @@ -1,4 +1,4 @@ -/* $Id: ac_import.c,v 1.5 2001/02/04 00:47:28 keithw Exp $ */ +/* $Id: ac_import.c,v 1.6 2001/02/07 16:00:58 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -59,9 +59,9 @@ static void reset_texcoord( GLcontext *ctx, GLuint unit ) else { ac->Raw.TexCoord[unit] = ac->Fallback.TexCoord[unit]; - if (ctx->Current.Texcoord[unit][4] != 1.0) + if (ctx->Current.Texcoord[unit][3] != 1.0) ac->Raw.TexCoord[unit].Size = 4; - else if (ctx->Current.Texcoord[unit][3] != 0.0) + else if (ctx->Current.Texcoord[unit][2] != 0.0) ac->Raw.TexCoord[unit].Size = 3; else ac->Raw.TexCoord[unit].Size = 2; |