diff options
author | Ilia Mirkin <[email protected]> | 2016-02-20 15:58:19 -0500 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2016-02-26 23:55:45 -0500 |
commit | 2875183463420ba21418d546f844f5bf1f089214 (patch) | |
tree | f3808c7089336d981d99dde8f02f6aee7c99cece /src/mesa/main/texparam.c | |
parent | 585b18f305fac2b6cbb1adbda62cfd7193cac2c1 (diff) |
mesa: expose GL_EXT_texture_sRGB_decode on GLES 3.0+
Could be exposed on earlier GLES versions if we supported EXT_sRGB, but
we don't, for now.
Signed-off-by: Ilia Mirkin <[email protected]>
Reviewed-by: Samuel Iglesias Gonsálvez <[email protected]>
Diffstat (limited to 'src/mesa/main/texparam.c')
-rw-r--r-- | src/mesa/main/texparam.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/main/texparam.c b/src/mesa/main/texparam.c index 20770a77e15..3b769f436b7 100644 --- a/src/mesa/main/texparam.c +++ b/src/mesa/main/texparam.c @@ -568,8 +568,7 @@ set_tex_parameteri(struct gl_context *ctx, goto invalid_pname; case GL_TEXTURE_SRGB_DECODE_EXT: - if (_mesa_is_desktop_gl(ctx) - && ctx->Extensions.EXT_texture_sRGB_decode) { + if (ctx->Extensions.EXT_texture_sRGB_decode) { GLenum decode = params[0]; if (!target_allows_setting_sampler_parameters(texObj->Target)) |