summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-06-14 14:46:43 +0200
committerMarek Olšák <[email protected]>2017-06-22 01:51:02 +0200
commit91579254db234cbeb60948063c5f30400d1a7e6c (patch)
treeca01ee4a6d12bc2ca0d629049f4f41357f02c551 /src
parent602a3e50e555197a10a0c1a1dda166fa8cf7053f (diff)
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 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/enable.c3
1 files changed, 2 insertions, 1 deletions
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);