Enable GL_ARB_texture_compression for XMesa/GLX driver. Texture

compression isn't really implmented.  Just updated glTexImageXD()
to accept compressed internal format tokens.
This commit is contained in:
Brian Paul
2001-06-15 14:18:46 +00:00
parent 65c6ca9179
commit e4276667da
10 changed files with 283 additions and 49 deletions

View File

@@ -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.
*/