set the VB->FogCoordPtr with the other legacy pointers
This commit is contained in:
parent
c515f90ec3
commit
b52559eb8c
|
@ -353,6 +353,7 @@ void _tnl_vb_bind_arrays( GLcontext *ctx, GLint start, GLsizei count )
|
|||
VB->IndexPtr[1] = 0;
|
||||
VB->SecondaryColorPtr[0] = VB->AttribPtr[_TNL_ATTRIB_COLOR1];
|
||||
VB->SecondaryColorPtr[1] = 0;
|
||||
VB->FogCoordPtr = VB->AttribPtr[_TNL_ATTRIB_FOG];
|
||||
|
||||
for (i = 0; i < ctx->Const.MaxTextureCoordUnits; i++) {
|
||||
VB->TexCoordPtr[i] = VB->AttribPtr[_TNL_ATTRIB_TEX0 + i];
|
||||
|
|
|
@ -110,6 +110,7 @@ static void _tnl_bind_vertex_list( GLcontext *ctx,
|
|||
VB->IndexPtr[1] = 0;
|
||||
VB->SecondaryColorPtr[0] = VB->AttribPtr[_TNL_ATTRIB_COLOR1];
|
||||
VB->SecondaryColorPtr[1] = 0;
|
||||
VB->FogCoordPtr = VB->AttribPtr[_TNL_ATTRIB_FOG];
|
||||
|
||||
for (i = 0; i < ctx->Const.MaxTextureCoordUnits; i++) {
|
||||
VB->TexCoordPtr[i] = VB->AttribPtr[_TNL_ATTRIB_TEX0 + i];
|
||||
|
|
|
@ -170,6 +170,7 @@ static void _tnl_vb_bind_vtx( GLcontext *ctx )
|
|||
VB->IndexPtr[1] = 0;
|
||||
VB->SecondaryColorPtr[0] = VB->AttribPtr[_TNL_ATTRIB_COLOR1];
|
||||
VB->SecondaryColorPtr[1] = 0;
|
||||
VB->FogCoordPtr = VB->AttribPtr[_TNL_ATTRIB_FOG];
|
||||
|
||||
for (i = 0; i < ctx->Const.MaxTextureCoordUnits; i++) {
|
||||
VB->TexCoordPtr[i] = VB->AttribPtr[_TNL_ATTRIB_TEX0 + i];
|
||||
|
|
Loading…
Reference in New Issue