mesa: inline _mesa_install_arrayelt_vtxfmt

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14000>
This commit is contained in:
Marek Olšák
2021-11-28 16:54:35 -05:00
parent d07b0d7dd7
commit 086c03e839
3 changed files with 1 additions and 14 deletions
-8
View File
@@ -1497,11 +1497,3 @@ _ae_ArrayElement(GLint elt)
_mesa_vao_unmap_arrays(ctx, vao);
}
void
_mesa_install_arrayelt_vtxfmt(struct _glapi_table *disp,
const GLvertexformat *vfmt)
{
SET_ArrayElement(disp, vfmt->ArrayElement);
}
-5
View File
@@ -35,9 +35,4 @@ struct _glapi_table;
extern void _mesa_array_element(struct gl_context *ctx, GLint elt);
extern void GLAPIENTRY _ae_ArrayElement( GLint elt );
extern void
_mesa_install_arrayelt_vtxfmt(struct _glapi_table *disp,
const GLvertexformat *vfmt);
#endif /* API_ARRAYELT_H */
+1 -1
View File
@@ -52,7 +52,7 @@ install_vtxfmt(struct gl_context *ctx, struct _glapi_table *tab,
}
if (ctx->API == API_OPENGL_COMPAT) {
_mesa_install_arrayelt_vtxfmt(tab, vfmt);
SET_ArrayElement(tab, vfmt->ArrayElement);
SET_Color3f(tab, vfmt->Color3f);
SET_Color3fv(tab, vfmt->Color3fv);
SET_Color4fv(tab, vfmt->Color4fv);