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 <imirkin@alum.mit.edu>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user