#include "prog_statevars.h"
#include "prog_execute.h"
+#include "tnl.h"
#include "t_context.h"
#include "t_pipeline.h"
/**
- * Load program parameter registers with tracked matrices (if NV program).
- * This only needs to be done per glBegin/glEnd, not per-vertex.
+ * Load current vertex program's parameter registers with tracked
+ * matrices (if NV program). This only needs to be done per
+ * glBegin/glEnd, not per-vertex.
*/
-static void
-load_program_parameters(GLcontext *ctx)
+void
+_mesa_load_tracked_matrices(GLcontext *ctx)
{
GLuint i;
continue;
}
- /* load the matrix values into sequential registers */
+ /* load the matrix values into sequential registers */
if (ctx->VertexProgram.TrackMatrixTransform[i] == GL_IDENTITY_NV) {
load_matrix(ctx->VertexProgram.Parameters, i*4, mat->m);
}
#endif
if (ctx->VertexProgram.Current->IsNVProgram) {
- load_program_parameters(ctx);
+ _mesa_load_tracked_matrices(ctx);
}
else {
_mesa_load_state_parameters(ctx, program->Base.Parameters);