diff options
author | Mathias Fröhlich <mathias.froehlich@web.de> | 2018-12-11 18:45:43 +0100 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2020-03-10 14:28:37 +0000 |
commit | 305724dd7b716fc1c577fde6a0dd3fa62fc0f502 (patch) | |
tree | 865f9b6fbfdc114c1374c2d555f6802a95069d94 /src/mesa | |
parent | 4ccda7bfd9712f1a9e29b9209e444c8e5652167c (diff) |
mesa: Remove now unused _mesa_draw_attrib_and_binding.
Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Mathias Fröhlich <Mathias.Froehlich@web.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/308>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/arrayobj.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/mesa/main/arrayobj.h b/src/mesa/main/arrayobj.h index 3efcd577ae5..c5f01ac1613 100644 --- a/src/mesa/main/arrayobj.h +++ b/src/mesa/main/arrayobj.h @@ -346,25 +346,6 @@ _mesa_draw_attrib(const struct gl_context *ctx, gl_vert_attrib attr) } -/** - * Return the attrib, binding pair for the given attribute. - */ -static inline void -_mesa_draw_attrib_and_binding(const struct gl_context *ctx, gl_vert_attrib attr, - const struct gl_array_attributes **attrib, - const struct gl_vertex_buffer_binding **binding) -{ - if (ctx->Array._DrawVAOEnabledAttribs & VERT_BIT(attr)) { - const struct gl_vertex_array_object *vao = ctx->Array._DrawVAO; - *attrib = _mesa_draw_array_attrib(vao, attr); - *binding = _mesa_draw_buffer_binding_from_attrib(vao, *attrib); - } else { - *attrib = _vbo_current_attrib(ctx, attr); - *binding = _vbo_current_binding(ctx); - } -} - - /* * API functions */ |