mesa/main: do not allow snorm-texture enums before gles3
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Fri, 16 Nov 2018 10:10:23 +0000 (11:10 +0100)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 3 Dec 2018 17:16:44 +0000 (18:16 +0100)
commit3629ee025c8e88692118272f270e948750820c47
tree55f860332af68e1e1feb055348ec9efe565cad39
parent52dc8b4f7bd6a8127c2a39edcb5193d1b5e89309
mesa/main: do not allow snorm-texture enums before gles3

ctx->Extensions.EXT_texture_snorm is set regardless of the API
that's used, so checking for those direcly will always allow the
enums from this extensions when they are supported by the driver.

There's no extension adding support for this on OpenGL ES before
version 3.0, so let's tighten the check.

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