diff options
author | Eric Engestrom <eric@igalia.com> | 2023-02-15 20:12:54 +0000 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2023-02-17 23:53:30 +0000 |
commit | 7a7c1e65197b20f2ff384bdb8070710735050963 (patch) | |
tree | 476f9dc6c9e78c562b4bb313a9551d78290ed788 /src/mesa/main/glformats.c | |
parent | 6651f9808c1351a5c30d1b0f80f86b580e1cb0aa (diff) | |
download | mesa-7a7c1e65197b20f2ff384bdb8070710735050963.tar.gz |
mesa: make more use of the new _mesa_is_gles1() helper
Signed-off-by: Eric Engestrom <eric@igalia.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21343>
Diffstat (limited to 'src/mesa/main/glformats.c')
-rw-r--r-- | src/mesa/main/glformats.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/glformats.c b/src/mesa/main/glformats.c index 06c68b4ab96..73f48e0ae98 100644 --- a/src/mesa/main/glformats.c +++ b/src/mesa/main/glformats.c @@ -1330,7 +1330,7 @@ _mesa_is_compressed_format(const struct gl_context *ctx, GLenum format) case GL_PALETTE8_R5_G6_B5_OES: case GL_PALETTE8_RGBA4_OES: case GL_PALETTE8_RGB5_A1_OES: - return ctx->API == API_OPENGLES; + return _mesa_is_gles1(ctx); } switch (_mesa_get_format_layout(m_format)) { |