Instead of reaching into the vbo_context object in vtxfmt.c
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
void
_mesa_initialize_vbo_vtxfmt(struct gl_context *ctx)
{
- struct vbo_exec_context *exec = &vbo_context(ctx)->exec;
- _mesa_install_exec_vtxfmt(ctx, &exec->vtxfmt);
+ _vbo_install_exec_vtxfmt(ctx);
if (ctx->API == API_OPENGL_COMPAT) {
_mesa_install_save_vtxfmt(ctx, &ctx->ListState.ListVtxfmt);
}
#include "main/mtypes.h"
#include "main/bufferobj.h"
#include "math/m_eval.h"
+#include "main/vtxfmt.h"
#include "vbo.h"
#include "vbo_context.h"
}
+void
+_vbo_install_exec_vtxfmt(struct gl_context *ctx)
+{
+ struct vbo_context *vbo = vbo_context(ctx);
+
+ _mesa_install_exec_vtxfmt(ctx, &vbo->exec.vtxfmt);
+}
+
+
GLboolean
_vbo_CreateContext(struct gl_context *ctx)
{
}
+void
+_vbo_install_exec_vtxfmt(struct gl_context *ctx);
+
+
/**
* Return VP_x token to indicate whether we're running fixed-function
* vertex transformation, an NV vertex program or ARB vertex program/shader.