projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
865ad82
)
fix texcoord unit assertion, the right one (bug 5780)
author
Roland Scheidegger
<rscheidegger@gmx.ch>
Wed, 1 Feb 2006 23:14:42 +0000
(23:14 +0000)
committer
Roland Scheidegger
<rscheidegger@gmx.ch>
Wed, 1 Feb 2006 23:14:42 +0000
(23:14 +0000)
src/mesa/array_cache/ac_import.c
patch
|
blob
|
history
diff --git
a/src/mesa/array_cache/ac_import.c
b/src/mesa/array_cache/ac_import.c
index 9e8e01c6e6e7a4874070b4569220b61260ba2a02..62206002cd36ee9ec8610941ab71005834a73146 100644
(file)
--- a/
src/mesa/array_cache/ac_import.c
+++ b/
src/mesa/array_cache/ac_import.c
@@
-278,7
+278,7
@@
import_texcoord( GLcontext *ctx, GLuint unit, GLenum type, GLuint stride )
struct gl_client_array *to = &ac->Cache.TexCoord[unit];
(void) type; (void) stride;
- ASSERT(unit <
MAX_TEXTURE_COORD_UNITS
);
+ ASSERT(unit <
ctx->Const.MaxTextureCoordUnits
);
/* Limited choices at this stage:
*/
@@
-501,7
+501,7
@@
_ac_import_texcoord( GLcontext *ctx,
{
ACcontext *ac = AC_CONTEXT(ctx);
- ASSERT(unit <
ctx->Const.MaxTextureCoordUnits
);
+ ASSERT(unit <
MAX_TEXTURE_COORD_UNITS
);
/* Can we keep the existing version?
*/