diff options
-rw-r--r-- | src/mesa/state_tracker/st_atom_array.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_atom_array.c b/src/mesa/state_tracker/st_atom_array.c index 9a0935e21a5..e4fc19eb5e2 100644 --- a/src/mesa/state_tracker/st_atom_array.c +++ b/src/mesa/state_tracker/st_atom_array.c @@ -324,7 +324,6 @@ static void init_velement_lowered(const struct st_vertex_program *vp, int src_offset, int instance_divisor, int vbo_index, int idx) { - const unsigned format = st_pipe_vertex_format(attrib); const GLubyte nr_components = attrib->Size; if (attrib->Doubles) { @@ -358,6 +357,8 @@ static void init_velement_lowered(const struct st_vertex_program *vp, } } } else { + const unsigned format = st_pipe_vertex_format(attrib); + init_velement(&velements[idx], src_offset, format, instance_divisor, vbo_index); } |