X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmesa%2Fmain%2Fvtxfmt.h;h=aac656879bf873ad78eb583c8bc7e66592a78076;hb=06913497d6b17f454bf4c5b8601d391980eb8265;hp=76f108e023229029a44591c57470224a3663b26e;hpb=e3358dea660f5dec53a8be9e38d725f4fd829e14;p=mesa.git diff --git a/src/mesa/main/vtxfmt.h b/src/mesa/main/vtxfmt.h index 76f108e0232..aac656879bf 100644 --- a/src/mesa/main/vtxfmt.h +++ b/src/mesa/main/vtxfmt.h @@ -33,11 +33,27 @@ #ifndef _VTXFMT_H_ #define _VTXFMT_H_ -extern void _mesa_init_exec_vtxfmt( GLcontext *ctx ); +#include "compiler.h" +#include "mfeatures.h" +#include "mtypes.h" -extern void _mesa_install_exec_vtxfmt( GLcontext *ctx, const GLvertexformat *vfmt ); -extern void _mesa_install_save_vtxfmt( GLcontext *ctx, const GLvertexformat *vfmt ); +#if FEATURE_beginend -extern void _mesa_restore_exec_vtxfmt( GLcontext *ctx ); +extern void _mesa_install_exec_vtxfmt( struct gl_context *ctx, const GLvertexformat *vfmt ); +extern void _mesa_install_save_vtxfmt( struct gl_context *ctx, const GLvertexformat *vfmt ); -#endif +#else /* FEATURE_beginend */ + +static inline void +_mesa_install_exec_vtxfmt( struct gl_context *ctx, const GLvertexformat *vfmt ) +{ +} + +static inline void +_mesa_install_save_vtxfmt( struct gl_context *ctx, const GLvertexformat *vfmt ) +{ +} + +#endif /* FEATURE_beginend */ + +#endif /* _VTXFMT_H_ */