diff options
author | marha <marha@users.sourceforge.net> | 2011-02-28 06:37:03 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2011-02-28 06:37:03 +0000 |
commit | feee2b5ceb37101bd1c4162e49805e6ad63e28ae (patch) | |
tree | dacb7faae8047c9dbc714a377440d9f69eb1f480 /mesalib/src/mesa/main/texformat.c | |
parent | 8268836508edd4ba2a3045c9ba937397df7bf2c5 (diff) | |
download | vcxsrv-feee2b5ceb37101bd1c4162e49805e6ad63e28ae.tar.gz vcxsrv-feee2b5ceb37101bd1c4162e49805e6ad63e28ae.tar.bz2 vcxsrv-feee2b5ceb37101bd1c4162e49805e6ad63e28ae.zip |
xserver libX11 Xextproto mesa Git update 28 Feb 2011
Diffstat (limited to 'mesalib/src/mesa/main/texformat.c')
-rw-r--r-- | mesalib/src/mesa/main/texformat.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/mesalib/src/mesa/main/texformat.c b/mesalib/src/mesa/main/texformat.c index 2542cea85..72025cf82 100644 --- a/mesalib/src/mesa/main/texformat.c +++ b/mesalib/src/mesa/main/texformat.c @@ -602,6 +602,25 @@ _mesa_choose_tex_format( struct gl_context *ctx, GLint internalFormat, } } + if (ctx->Extensions.ARB_texture_compression_rgtc) { + switch (internalFormat) { + case GL_COMPRESSED_RED_RGTC1: + RETURN_IF_SUPPORTED(MESA_FORMAT_RED_RGTC1); + break; + case GL_COMPRESSED_SIGNED_RED_RGTC1: + RETURN_IF_SUPPORTED(MESA_FORMAT_SIGNED_RED_RGTC1); + break; + case GL_COMPRESSED_RG_RGTC2: + RETURN_IF_SUPPORTED(MESA_FORMAT_RG_RGTC2); + break; + case GL_COMPRESSED_SIGNED_RG_RGTC2: + RETURN_IF_SUPPORTED(MESA_FORMAT_SIGNED_RG_RGTC2); + break; + default: + ; /* fallthrough */ + } + } + _mesa_problem(ctx, "unexpected format in _mesa_choose_tex_format()"); return MESA_FORMAT_NONE; } |