From: Marek Olšák Date: Wed, 14 Jun 2017 12:46:43 +0000 (+0200) Subject: mesa: don't call _mesa_update_clip_plane in the GL core profile X-Git-Tag: upstream/18.1.0~8508 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=91579254db234cbeb60948063c5f30400d1a7e6c;p=platform%2Fupstream%2Fmesa.git mesa: don't call _mesa_update_clip_plane in the GL core profile It uses the projection matrix to transform the clip plane. Reviewed-by: Ilia Mirkin --- diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c index 752a740c..f1a9c7b 100644 --- a/src/mesa/main/enable.c +++ b/src/mesa/main/enable.c @@ -359,7 +359,8 @@ _mesa_set_enable(struct gl_context *ctx, GLenum cap, GLboolean state) if (state) { ctx->Transform.ClipPlanesEnabled |= (1 << p); - _mesa_update_clip_plane(ctx, p); + if (ctx->API == API_OPENGL_COMPAT || ctx->API == API_OPENGLES) + _mesa_update_clip_plane(ctx, p); } else { ctx->Transform.ClipPlanesEnabled &= ~(1 << p);