mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-27 16:20:24 +01:00
mesa/main: do not allow etc2 enums on gles1
ctx->Extensions.ARB_ES3_compatibility is set regardless of the API that's used, so checking for those direcly will always enable extensions when they are supported by the driver. But there's no extension enabling ETC2 for OpenGL ES 1.x, so we shouldn't allow those enums there. Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
27ca87ccca
commit
1aa134038c
1 changed files with 1 additions and 1 deletions
|
|
@ -1385,7 +1385,7 @@ _mesa_is_compressed_format(const struct gl_context *ctx, GLenum format)
|
|||
case MESA_FORMAT_LAYOUT_ETC1:
|
||||
return _mesa_has_OES_compressed_ETC1_RGB8_texture(ctx);
|
||||
case MESA_FORMAT_LAYOUT_ETC2:
|
||||
return _mesa_is_gles3(ctx) || ctx->Extensions.ARB_ES3_compatibility;
|
||||
return _mesa_is_gles3(ctx) || _mesa_has_ARB_ES3_compatibility(ctx);
|
||||
case MESA_FORMAT_LAYOUT_BPTC:
|
||||
return _mesa_has_ARB_texture_compression_bptc(ctx);
|
||||
case MESA_FORMAT_LAYOUT_ASTC:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue