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:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user