mesa/teximage: restrict GL_ETC1_RGB8_OES support to GLES
authorNanley Chery <nanley.g.chery@intel.com>
Thu, 27 Aug 2015 23:05:22 +0000 (16:05 -0700)
committerNanley Chery <nanley.g.chery@intel.com>
Tue, 15 Sep 2015 17:11:14 +0000 (10:11 -0700)
commit82007936491d5fb99cdc5ea18c076e8a896a4a1e
treed2706fe46ab1d3e39b2b4c63b5f0fc88b0358c31
parent48961fa3ba37999a6f8fd812458b735e39604a95
mesa/teximage: restrict GL_ETC1_RGB8_OES support to GLES

According to the extensions table and our glext headers,
OES_compressed_ETC1_RGB8_texture is only supported in
GLES1 and GLES2. Since we may give users a GLES3 context
when a GLES2 context is requested, we also allow this
extension for GLES3 as well.

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
src/mesa/main/teximage.c