From 91579254db234cbeb60948063c5f30400d1a7e6c Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Wed, 14 Jun 2017 14:46:43 +0200 Subject: 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 --- src/mesa/main/enable.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/mesa/main/enable.c b/src/mesa/main/enable.c index 752a740c861..f1a9c7b7db6 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); -- cgit v1.2.3