diff options
author | Brian Paul <[email protected]> | 2016-10-13 14:21:46 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2016-10-20 09:47:21 -0600 |
commit | 4c3c9f1441a3034a4f9eb7d85ee25b4199e49146 (patch) | |
tree | d77a34ad5b328e19239baf5d18eef318f8f4ee52 /src/mesa/vbo | |
parent | 7693bcde2802f2b7772eaf35506cabaae62cbe45 (diff) |
vbo: rename reset_attrfv() to vbo_reset_all_attr()
Use a better name.
Reviewed-by: Charmaine Lee <[email protected]>
Diffstat (limited to 'src/mesa/vbo')
-rw-r--r-- | src/mesa/vbo/vbo_exec_api.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mesa/vbo/vbo_exec_api.c b/src/mesa/vbo/vbo_exec_api.c index 6df8d887609..c0a5bc01f4f 100644 --- a/src/mesa/vbo/vbo_exec_api.c +++ b/src/mesa/vbo/vbo_exec_api.c @@ -57,7 +57,8 @@ USE OR OTHER DEALINGS IN THE SOFTWARE. #define IMM_BUFFER_NAME 0xaabbccdd -static void reset_attrfv( struct vbo_exec_context *exec ); +static void +vbo_reset_all_attr(struct vbo_exec_context *exec); /** @@ -304,7 +305,7 @@ vbo_exec_wrap_upgrade_vertex(struct vbo_exec_context *exec, if (!_mesa_inside_begin_end(ctx) && !oldSize && lastcount > 8 && exec->vtx.vertex_size) { vbo_exec_copy_to_current( exec ); - reset_attrfv( exec ); + vbo_reset_all_attr(exec); } /* Fix up sizes: @@ -630,7 +631,7 @@ vbo_exec_FlushVertices_internal(struct vbo_exec_context *exec, GLboolean unmap) if (exec->vtx.vertex_size) { vbo_exec_copy_to_current( exec ); - reset_attrfv( exec ); + vbo_reset_all_attr(exec); } } @@ -1286,7 +1287,8 @@ vbo_reset_attr(struct vbo_exec_context *exec, GLuint attr) exec->vtx.active_sz[attr] = 0; } -static void reset_attrfv( struct vbo_exec_context *exec ) +static void +vbo_reset_all_attr(struct vbo_exec_context *exec) { while (exec->vtx.enabled) { const int i = u_bit_scan64(&exec->vtx.enabled); |