mesa/main: do not allow astc enums on gles1
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Fri, 16 Nov 2018 08:51:26 +0000 (09:51 +0100)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 3 Dec 2018 17:16:44 +0000 (18:16 +0100)
commit2dfcaf7554cab0aae32372dc4a77fdb3ba74173d
tree04f071dc8aba764132b5700cf13b56a37b7325d7
parent1aa134038c3b9eefd6d7e6d227bea7bdc5bb7a4e
mesa/main: do not allow astc enums on gles1

ctx->Extensions.KHR_texture_compression_astc_ldr 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 ASTC 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>
src/mesa/main/glformats.c