diff options
Diffstat (limited to 'src/mesa/main/extensions.h')
-rw-r--r-- | src/mesa/main/extensions.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/mesa/main/extensions.h b/src/mesa/main/extensions.h index 8be86897991..54aa25511b4 100644 --- a/src/mesa/main/extensions.h +++ b/src/mesa/main/extensions.h @@ -1,3 +1,13 @@ +/** + * \file extensions.h + * Extension handling. + * + * \if subset + * (No-op) + * + * \endif + */ + /* * Mesa 3-D graphics library * Version: 5.1 @@ -28,6 +38,7 @@ #include "mtypes.h" +#if _HAVE_FULL_GL extern void _mesa_enable_sw_extensions(GLcontext *ctx); @@ -49,4 +60,23 @@ extern void _mesa_init_extensions(GLcontext *ctx); extern GLubyte *_mesa_make_extension_string(GLcontext *ctx); +#else + +/** No-op */ +#define _mesa_extensions_dtr( ctx ) ((void)0) + +/** No-op */ +#define _mesa_extensions_ctr( ctx ) ((void)0) + +/** No-op */ +#define _mesa_extensions_get_string( ctx ) "GL_EXT_texture_object" + +/** No-op */ +#define _mesa_enable_imaging_extensions( c ) ((void)0) + +/** No-op */ +#define _mesa_enable_extension( c, n ) ((void)0) + +#endif + #endif |