diff options
author | Brian Paul <[email protected]> | 2003-05-01 22:44:02 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2003-05-01 22:44:02 +0000 |
commit | 92f9785c727ea10ff5f8dc9770f0e8f388fcea70 (patch) | |
tree | 10335899a8205128723f6b459d827e918bbc2d86 /src/mesa/main/api_arrayelt.c | |
parent | 09b00c5ded8e6211c9c79be600bb8c8ecad0d8fc (diff) |
Use ctx->Const.MaxTextureImageUnits and MaxTextureCoordUnits in more places.
Misc vertex array / vertex program changes.
Diffstat (limited to 'src/mesa/main/api_arrayelt.c')
-rw-r--r-- | src/mesa/main/api_arrayelt.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mesa/main/api_arrayelt.c b/src/mesa/main/api_arrayelt.c index 8d64b1edc38..f8269fe61ca 100644 --- a/src/mesa/main/api_arrayelt.c +++ b/src/mesa/main/api_arrayelt.c @@ -1,10 +1,8 @@ -/* $Id: api_arrayelt.c,v 1.12 2003/01/14 04:55:45 brianp Exp $ */ - /* * Mesa 3-D graphics library * Version: 5.1 * - * Copyright (C) 1999-2002 Brian Paul All Rights Reserved. + * Copyright (C) 1999-2003 Brian Paul All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -277,7 +275,7 @@ static void _ae_update_state( GLcontext *ctx ) AEarray *aa = actx->arrays; GLuint i; - for (i = 0 ; i < ctx->Const.MaxTextureUnits ; i++) + for (i = 0 ; i < ctx->Const.MaxTextureCoordUnits ; i++) if (ctx->Array.TexCoord[i].Enabled) { ta->unit = i; ta->array = &ctx->Array.TexCoord[i]; |