1). Fix for cube maps in the player.

ImBuf pointer was being overridden causing the ibuf->rect to be zero.

2). Added vertex attributes for tangents in in vertex arrays.
This, probably needs the extensions enabled (glEnableVertexAttribArrayARB, glDisableVertexAttribArrayARB), but am a little
weary about enabling them right now.
This commit is contained in:
Charlie Carley
2007-02-01 02:10:38 +00:00
parent 1f4af00c94
commit 3947f9b885
2 changed files with 7 additions and 1 deletions

View File

@@ -667,7 +667,7 @@ void my_envmap_split_ima(EnvMap *env, ImBuf *ibuf)
}
else {
for(part=0; part<6; part++) {
env->cube[part]= ibuf= IMB_allocImBuf(dx, dx, 24, IB_rect, 0);
env->cube[part]= IMB_allocImBuf(dx, dx, 24, IB_rect, 0);
}
IMB_rectcpy(env->cube[0], ibuf,
0, 0, 0, 0, dx, dx);

View File

@@ -332,6 +332,12 @@ void RAS_VAOpenGLRasterizer::TexCoordPtr(const RAS_TexVert *tv, int enabled)
}
}
}
#ifdef GL_ARB_vertex_program
if(m_useTang && bgl::RAS_EXT_support._ARB_vertex_program)
bgl::blVertexAttrib4fvARB(1/*tangent*/, tv->getTangent());
#endif
#endif
}