diff options
author | Brian Paul <[email protected]> | 2000-11-17 21:01:25 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2000-11-17 21:01:25 +0000 |
commit | 5a9026c65d260dc185e072163999f5d810015108 (patch) | |
tree | 250630676f5a7493292cb378def17f3105f046c7 /src/mesa/main | |
parent | 9e83e8c790d8b612a7256c630f6ff7e063faaccb (diff) |
Minor header file changes to silence warnings.
Added _mesa_enable_sw_extensions(), called by software-only drivers
to enable all s/w-supported GL extensions.
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/extensions.c | 17 | ||||
-rw-r--r-- | src/mesa/main/extensions.h | 5 |
2 files changed, 20 insertions, 2 deletions
diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c index c83b112763f..a36e6b00bee 100644 --- a/src/mesa/main/extensions.c +++ b/src/mesa/main/extensions.c @@ -1,4 +1,4 @@ -/* $Id: extensions.c,v 1.40 2000/10/30 16:27:21 brianp Exp $ */ +/* $Id: extensions.c,v 1.41 2000/11/17 21:01:25 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -109,6 +109,21 @@ static struct { +/* + * Enable all extensions suitable for a software-only renderer. + * This is a convenience function used by the XMesa, OSMesa, GGI drivers, etc. + */ +void +_mesa_enable_sw_extensions(GLcontext *ctx) +{ + gl_extensions_enable(ctx, "GL_ARB_texture_cube_map"); + gl_extensions_enable(ctx, "GL_EXT_bgra"); + gl_extensions_enable(ctx, "GL_EXT_texture_env_combine"); + gl_extensions_enable(ctx, "GL_HP_occlusion_test"); + gl_extensions_enable(ctx, "GL_NV_blend_square"); +} + + int gl_extensions_add( GLcontext *ctx, GLboolean enabled, diff --git a/src/mesa/main/extensions.h b/src/mesa/main/extensions.h index 4c861b32ac3..f11926b1966 100644 --- a/src/mesa/main/extensions.h +++ b/src/mesa/main/extensions.h @@ -1,4 +1,4 @@ -/* $Id: extensions.h,v 1.9 2000/10/30 13:32:00 keithw Exp $ */ +/* $Id: extensions.h,v 1.10 2000/11/17 21:01:25 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -31,6 +31,9 @@ #include "types.h" +extern void +_mesa_enable_sw_extensions(GLcontext *ctx); + /* Return 0 on success. */ |