expose _mesa_load_tracked_matrices()

This commit is contained in:
Brian
2007-02-23 13:38:37 -07:00
parent 15b3bd1689
commit 36a0ee199d
2 changed files with 11 additions and 6 deletions

View File

@@ -38,6 +38,7 @@
#include "prog_statevars.h"
#include "prog_execute.h"
#include "tnl.h"
#include "t_context.h"
#include "t_pipeline.h"
@@ -121,11 +122,12 @@ load_transpose_matrix(GLfloat registers[][4], GLuint pos,
/**
* 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;
@@ -206,7 +208,7 @@ run_vp( GLcontext *ctx, struct tnl_pipeline_stage *stage )
#endif
if (ctx->VertexProgram.Current->IsNVProgram) {
load_program_parameters(ctx);
_mesa_load_tracked_matrices(ctx);
}
else {
_mesa_load_state_parameters(ctx, program->Base.Parameters);

View File

@@ -82,4 +82,7 @@ _tnl_draw_prims( GLcontext *ctx,
GLuint min_index,
GLuint max_index);
extern void
_mesa_load_tracked_matrices(GLcontext *ctx);
#endif