diff options
author | Brian Paul <[email protected]> | 2001-06-15 14:18:46 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2001-06-15 14:18:46 +0000 |
commit | e4276667dafc8de0c6e64af8300fc7598437de6e (patch) | |
tree | 64045f32665046d09c91138bdc9369083bc1ed31 /src/mesa/drivers/x11 | |
parent | 65c6ca91795a71cf38dbe5f49f2d73fd9d4049cd (diff) |
Enable GL_ARB_texture_compression for XMesa/GLX driver. Texture
compression isn't really implmented. Just updated glTexImageXD()
to accept compressed internal format tokens.
Diffstat (limited to 'src/mesa/drivers/x11')
-rw-r--r-- | src/mesa/drivers/x11/xm_api.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mesa/drivers/x11/xm_api.c b/src/mesa/drivers/x11/xm_api.c index 9df18b25a1b..a487f229055 100644 --- a/src/mesa/drivers/x11/xm_api.c +++ b/src/mesa/drivers/x11/xm_api.c @@ -1,4 +1,4 @@ -/* $Id: xm_api.c,v 1.24 2001/06/04 22:33:02 brianp Exp $ */ +/* $Id: xm_api.c,v 1.25 2001/06/15 14:18:46 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -77,6 +77,8 @@ #include "conf.h" #endif #include "macros.h" +#include "texformat.h" +#include "texstore.h" #include "swrast/swrast.h" #include "swrast_setup/swrast_setup.h" #include "array_cache/acache.h" @@ -1634,6 +1636,10 @@ XMesaContext XMesaCreateContext( XMesaVisual v, XMesaContext share_list ) } _mesa_enable_sw_extensions(ctx); + _mesa_enable_extension(ctx, "GL_ARB_texture_compression"); + ctx->Driver.BaseCompressedTexFormat = _mesa_base_compressed_texformat; + ctx->Driver.CompressedTextureSize = _mesa_compressed_texture_size; + ctx->Driver.GetCompressedTexImage = _mesa_get_compressed_teximage; if (CHECK_BYTE_ORDER(v)) { c->swapbytes = GL_FALSE; |