diff options
author | Daniel Borca <[email protected]> | 2003-11-21 09:56:50 +0000 |
---|---|---|
committer | Daniel Borca <[email protected]> | 2003-11-21 09:56:50 +0000 |
commit | 663a9e1b7ef7b8384abe2f81e1a8749b942f6d3a (patch) | |
tree | b106ee1b0d50acc49060d11e3b5a578f22df1575 /src/mesa/main/teximage.c | |
parent | 8b07e9d8a4342ec2a24fec37932398189ef80eb5 (diff) |
more texture compression
Diffstat (limited to 'src/mesa/main/teximage.c')
-rw-r--r-- | src/mesa/main/teximage.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index efe197e13ec..ec08168fc02 100644 --- a/src/mesa/main/teximage.c +++ b/src/mesa/main/teximage.c @@ -274,6 +274,18 @@ _mesa_base_tex_format( GLcontext *ctx, GLint format ) return GL_RGBA; else return -1; + case GL_RGB_S3TC: + case GL_RGB4_S3TC: + if (ctx->Extensions.S3_s3tc) + return GL_RGB; + else + return -1; + case GL_RGBA_S3TC: + case GL_RGBA4_S3TC: + if (ctx->Extensions.S3_s3tc) + return GL_RGBA; + else + return -1; case GL_YCBCR_MESA: if (ctx->Extensions.MESA_ycbcr_texture) @@ -387,6 +399,10 @@ is_compressed_format(GLcontext *ctx, GLenum internalFormat) case GL_COMPRESSED_RGBA_S3TC_DXT1_EXT: case GL_COMPRESSED_RGBA_S3TC_DXT3_EXT: case GL_COMPRESSED_RGBA_S3TC_DXT5_EXT: + case GL_RGB_S3TC: + case GL_RGB4_S3TC: + case GL_RGBA_S3TC: + case GL_RGBA4_S3TC: return GL_TRUE; default: if (ctx->Driver.IsCompressedFormat) { |