From e4276667dafc8de0c6e64af8300fc7598437de6e Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 15 Jun 2001 14:18:46 +0000 Subject: Enable GL_ARB_texture_compression for XMesa/GLX driver. Texture compression isn't really implmented. Just updated glTexImageXD() to accept compressed internal format tokens. --- src/mesa/main/extensions.c | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) (limited to 'src/mesa/main/extensions.c') diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c index fc26efbb62..169ae2d44a 100644 --- a/src/mesa/main/extensions.c +++ b/src/mesa/main/extensions.c @@ -1,4 +1,4 @@ -/* $Id: extensions.c,v 1.61 2001/05/29 15:23:49 brianp Exp $ */ +/* $Id: extensions.c,v 1.62 2001/06/15 14:18:46 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -203,6 +203,34 @@ _mesa_enable_imaging_extensions(GLcontext *ctx) } + +/* + * Enable all OpenGL 1.3 features and extensions. + */ +void +_mesa_enable_1_3_extensions(GLcontext *ctx) +{ + const char *extensions[] = { + "GL_ARB_multisample", + "GL_ARB_multitexture", + "GL_ARB_texture_border_clamp", + "GL_ARB_texture_compression", + "GL_ARB_texture_cube_map", + "GL_ARB_texture_env_add", + "GL_ARB_texture_env_combine", + "GL_ARB_texture_env_dot3", + "GL_ARB_transpose_matrix", + NULL + }; + GLuint i; + + for (i = 0; extensions[i]; i++) { + _mesa_enable_extension(ctx, extensions[i]); + } +} + + + /* * Add a new extenstion. This would be called from a Mesa driver. */ -- cgit v1.2.3