projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'mesa_7_7_branch'
[mesa.git]
/
src
/
mesa
/
tnl
/
t_vb_light.c
diff --git
a/src/mesa/tnl/t_vb_light.c
b/src/mesa/tnl/t_vb_light.c
index f47f99397c9ad29bf59664884f66325f1d25d879..8a0fe63fd8b75ab60feaa3042c883ae093aa79b8 100644
(file)
--- a/
src/mesa/tnl/t_vb_light.c
+++ b/
src/mesa/tnl/t_vb_light.c
@@
-127,7
+127,7
@@
prepare_materials(GLcontext *ctx,
const GLuint bitmask = ctx->Light.ColorMaterialBitmask;
for (i = 0 ; i < MAT_ATTRIB_MAX ; i++)
if (bitmask & (1<<i))
const GLuint bitmask = ctx->Light.ColorMaterialBitmask;
for (i = 0 ; i < MAT_ATTRIB_MAX ; i++)
if (bitmask & (1<<i))
- VB->AttribPtr[_TNL_ATTRIB_MAT_FRONT_AMBIENT + i] = VB->
ColorPtr[
0];
+ VB->AttribPtr[_TNL_ATTRIB_MAT_FRONT_AMBIENT + i] = VB->
AttribPtr[_TNL_ATTRIB_COLOR
0];
}
/* Now, for each material attribute that's tracking vertex color, save
}
/* Now, for each material attribute that's tracking vertex color, save
@@
-200,7
+200,7
@@
static GLboolean run_lighting( GLcontext *ctx,
struct light_stage_data *store = LIGHT_STAGE_DATA(stage);
TNLcontext *tnl = TNL_CONTEXT(ctx);
struct vertex_buffer *VB = &tnl->vb;
struct light_stage_data *store = LIGHT_STAGE_DATA(stage);
TNLcontext *tnl = TNL_CONTEXT(ctx);
struct vertex_buffer *VB = &tnl->vb;
- GLvector4f *input = ctx->_NeedEyeCoords ? VB->EyePtr : VB->
ObjPtr
;
+ GLvector4f *input = ctx->_NeedEyeCoords ? VB->EyePtr : VB->
AttribPtr[_TNL_ATTRIB_POS]
;
GLuint idx;
if (!ctx->Light.Enabled || ctx->VertexProgram._Current)
GLuint idx;
if (!ctx->Light.Enabled || ctx->VertexProgram._Current)
@@
-208,13
+208,13
@@
static GLboolean run_lighting( GLcontext *ctx,
/* Make sure we can talk about position x,y and z:
*/
/* Make sure we can talk about position x,y and z:
*/
- if (input->size <= 2 && input == VB->
ObjPtr
) {
+ if (input->size <= 2 && input == VB->
AttribPtr[_TNL_ATTRIB_POS]
) {
_math_trans_4f( store->Input.data,
_math_trans_4f( store->Input.data,
- VB->
ObjPtr
->data,
- VB->
ObjPtr
->stride,
+ VB->
AttribPtr[_TNL_ATTRIB_POS]
->data,
+ VB->
AttribPtr[_TNL_ATTRIB_POS]
->stride,
GL_FLOAT,
GL_FLOAT,
- VB->
ObjPtr
->size,
+ VB->
AttribPtr[_TNL_ATTRIB_POS]
->size,
0,
VB->Count );
0,
VB->Count );
@@
-246,10
+246,6
@@
static GLboolean run_lighting( GLcontext *ctx,
*/
store->light_func_tab[idx]( ctx, VB, stage, input );
*/
store->light_func_tab[idx]( ctx, VB, stage, input );
- VB->AttribPtr[_TNL_ATTRIB_COLOR0] = VB->ColorPtr[0];
- VB->AttribPtr[_TNL_ATTRIB_COLOR1] = VB->SecondaryColorPtr[0];
- VB->AttribPtr[_TNL_ATTRIB_COLOR_INDEX] = VB->IndexPtr[0];
-
return GL_TRUE;
}
return GL_TRUE;
}