diff options
Diffstat (limited to 'src/mesa/main/enable.c')
-rw-r--r-- | src/mesa/main/enable.c | 3 |
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); |