diff options
author | Gurchetan Singh <[email protected]> | 2019-01-29 18:46:11 -0800 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2019-02-01 10:01:59 +0000 |
commit | db24132d801e913b41d0af2ebffaa11e7724d1a4 (patch) | |
tree | e29e6974923cbdfe4a084701fbdd29cc32ea8f8a /src/mesa/main/glformats.c | |
parent | 0f3a8e1b64f52586e904b42e2d73148d8547713a (diff) |
mesa/main: Expose EXT_texture_compression_s3tc_srgb
Required for the following test:
bin/compressedteximage GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT
pass when emulating GL on GLES.
Reviewed-by: Erik Faye-Lund <[email protected]>
Diffstat (limited to 'src/mesa/main/glformats.c')
-rw-r--r-- | src/mesa/main/glformats.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/glformats.c b/src/mesa/main/glformats.c index 3a916009735..ea72cab5b3e 100644 --- a/src/mesa/main/glformats.c +++ b/src/mesa/main/glformats.c @@ -1373,7 +1373,8 @@ _mesa_is_compressed_format(const struct gl_context *ctx, GLenum format) if (_mesa_get_format_color_encoding(m_format) == GL_LINEAR) { return _mesa_has_EXT_texture_compression_s3tc(ctx); } else { - return _mesa_has_EXT_texture_sRGB(ctx) && + return (_mesa_has_EXT_texture_sRGB(ctx) || + _mesa_has_EXT_texture_compression_s3tc_srgb(ctx)) && _mesa_has_EXT_texture_compression_s3tc(ctx); } case MESA_FORMAT_LAYOUT_FXT1: |