mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 01:40:08 +01:00
Rearrange VERT_* flags to support 4 texture units.
This commit is contained in:
parent
9499e017b7
commit
365dc68c39
2 changed files with 8 additions and 7 deletions
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: context.c,v 1.100 2000/10/30 16:32:43 brianp Exp $ */
|
||||
/* $Id: context.c,v 1.101 2000/10/30 18:50:42 keithw Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
|
|
@ -904,9 +904,10 @@ init_attrib_groups( GLcontext *ctx )
|
|||
VERT_SPEC_RGB |
|
||||
VERT_FOG_COORD |
|
||||
VERT_EDGE |
|
||||
VERT_TEX0_1 |
|
||||
VERT_TEX1_1 |
|
||||
VERT_TEX2_1 | /* XXX fix for MAX_TEXTURE_UNITS > 3 */
|
||||
VERT_TEX0_12 |
|
||||
VERT_TEX1_12 |
|
||||
VERT_TEX2_12 |
|
||||
VERT_TEX3_12 |
|
||||
VERT_MATERIAL);
|
||||
|
||||
init_fallback_arrays( ctx );
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: varray.c,v 1.28 2000/10/30 16:30:56 keithw Exp $ */
|
||||
/* $Id: varray.c,v 1.29 2000/10/30 18:50:42 keithw Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
|
|
@ -408,7 +408,7 @@ _mesa_TexCoordPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *ptr
|
|||
|
||||
ctx->Array.TexCoordFunc[texUnit] = gl_trans_4f_tab[size][TYPE_IDX(type)];
|
||||
ctx->Array.TexCoordEltFunc[texUnit] = gl_trans_elt_4f_tab[size][TYPE_IDX(type)];
|
||||
ctx->Array.NewArrayState |= PIPE_TEX(texUnit);
|
||||
ctx->Array.NewArrayState |= VERT_TEX_ANY(texUnit);
|
||||
ctx->NewState |= _NEW_ARRAY;
|
||||
}
|
||||
|
||||
|
|
@ -1349,7 +1349,7 @@ void gl_update_client_state( GLcontext *ctx )
|
|||
};
|
||||
static const GLuint tc_flags[5] = {
|
||||
0,
|
||||
VERT_TEX0_1,
|
||||
VERT_TEX0_12,
|
||||
VERT_TEX0_12,
|
||||
VERT_TEX0_123,
|
||||
VERT_TEX0_1234
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue