From 4d23157a8bf5da2f20ad477029fcf59d9df8557e Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Mon, 1 Jul 2019 15:43:19 -0700 Subject: mesa: Give _mesa_format_get_color_encoding a clearer name. It only returned one of two values. Reviewed-by: Thomas Helland Reviewed-by: Kristian H. Kristensen --- src/mesa/main/glformats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/main/glformats.c') diff --git a/src/mesa/main/glformats.c b/src/mesa/main/glformats.c index bd087848803..3e493cd5c2d 100644 --- a/src/mesa/main/glformats.c +++ b/src/mesa/main/glformats.c @@ -1373,7 +1373,7 @@ _mesa_is_compressed_format(const struct gl_context *ctx, GLenum format) switch (_mesa_get_format_layout(m_format)) { case MESA_FORMAT_LAYOUT_S3TC: - if (_mesa_get_format_color_encoding(m_format) == GL_LINEAR) { + if (!_mesa_is_format_srgb(m_format)) { return _mesa_has_EXT_texture_compression_s3tc(ctx); } else { return (_mesa_has_EXT_texture_sRGB(ctx) || -- cgit v1.2.3