diff options
author | Brian Paul <[email protected]> | 2018-01-18 14:13:34 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2018-01-24 10:12:49 -0700 |
commit | d40fa42292e88fbaca2a838ff35a42db2d1de515 (patch) | |
tree | 760e450d7efc82a7f1f7275af49ad816d5ff993d /src/mesa/vbo | |
parent | 04a17ec32765bd50cec517f4f92879f0b7e227e3 (diff) |
mesa: use new _vbo_install_exec_vtxfmt() function
Instead of reaching into the vbo_context object in vtxfmt.c
Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/mesa/vbo')
-rw-r--r-- | src/mesa/vbo/vbo_context.c | 10 | ||||
-rw-r--r-- | src/mesa/vbo/vbo_context.h | 4 |
2 files changed, 14 insertions, 0 deletions
diff --git a/src/mesa/vbo/vbo_context.c b/src/mesa/vbo/vbo_context.c index ed1b6508cdc..3d3f838c4f5 100644 --- a/src/mesa/vbo/vbo_context.c +++ b/src/mesa/vbo/vbo_context.c @@ -28,6 +28,7 @@ #include "main/mtypes.h" #include "main/bufferobj.h" #include "math/m_eval.h" +#include "main/vtxfmt.h" #include "vbo.h" #include "vbo_context.h" @@ -181,6 +182,15 @@ vbo_draw_indirect_prims(struct gl_context *ctx, } +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) { diff --git a/src/mesa/vbo/vbo_context.h b/src/mesa/vbo/vbo_context.h index cd1cbd9641b..2eac0198b80 100644 --- a/src/mesa/vbo/vbo_context.h +++ b/src/mesa/vbo/vbo_context.h @@ -110,6 +110,10 @@ vbo_exec_invalidate_state(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. |