#include "main/glheader.h"
#include "main/ffvertex_prog.h"
+#include "main/mtypes.h"
#include "t_vp_build.h"
/**
* XXX This should go away someday, but still referenced by some drivers...
*/
-void _tnl_UpdateFixedFunctionProgram( GLcontext *ctx )
+void _tnl_UpdateFixedFunctionProgram( struct gl_context *ctx )
{
const struct gl_vertex_program *prev = ctx->VertexProgram._Current;
if (!ctx->VertexProgram._Current ||
ctx->VertexProgram._Current == ctx->VertexProgram._TnlProgram) {
- struct gl_vertex_program *newProg;
-
- newProg = _mesa_get_fixed_func_vertex_program(ctx);
-
- _mesa_reference_vertprog(ctx, &ctx->VertexProgram._TnlProgram, newProg);
- _mesa_reference_vertprog(ctx, &ctx->VertexProgram._Current, newProg);
+ ctx->VertexProgram._Current
+ = ctx->VertexProgram._TnlProgram
+ = _mesa_get_fixed_func_vertex_program(ctx);
}
/* Tell the driver about the change. Could define a new target for