summaryrefslogtreecommitdiffstats
path: root/src/mesa/vbo/vbo_save_draw.c
diff options
context:
space:
mode:
authorMathias Fröhlich <[email protected]>2018-02-03 10:42:01 +0100
committerMathias Fröhlich <[email protected]>2018-02-23 05:33:36 +0100
commit60c3ca1b2399804257cad394267ca740017361c6 (patch)
treeb7cfc3fa0874c47315bde49989088b4118b57f2e /src/mesa/vbo/vbo_save_draw.c
parent92d76a169127a6b8b4e2027a95425b592d0ca3db (diff)
vbo: Use _VPMode instead of get_vp_mode().
At those places where we used get_vp_mode() use gl_vertex_program_state::_VPMode instead. Signed-off-by: Mathias Fröhlich <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/vbo/vbo_save_draw.c')
-rw-r--r--src/mesa/vbo/vbo_save_draw.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/vbo/vbo_save_draw.c b/src/mesa/vbo/vbo_save_draw.c
index 96a9bab029a..8c58fecf406 100644
--- a/src/mesa/vbo/vbo_save_draw.c
+++ b/src/mesa/vbo/vbo_save_draw.c
@@ -142,8 +142,9 @@ bind_vertex_list(struct gl_context *ctx,
GLuint attr;
GLbitfield varying_inputs = 0x0;
- const enum vp_mode program_mode = get_vp_mode(ctx);
- const GLubyte * const map = _vbo_attribute_alias_map[program_mode];
+ const gl_vertex_processing_mode processing_mode
+ = ctx->VertexProgram._VPMode;
+ const GLubyte * const map = _vbo_attribute_alias_map[processing_mode];
/* Grab VERT_ATTRIB_{POS,GENERIC0} from VBO_ATTRIB_POS */
const gl_attribute_map_mode mode = ATTRIBUTE_MAP_MODE_POSITION;