From 39e2b43b22975d75352fc7af4e4e6f573e99eb9e Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Tue, 17 Mar 2009 00:12:27 +0000 Subject: [PATCH] [cogl] Apply the fix from 2c1c836417 (Flush matrix before clip planes) to GLES glClipPlane() is affected by modelview matrix so we need to flush before calling it. --- clutter/cogl/gles/cogl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clutter/cogl/gles/cogl.c b/clutter/cogl/gles/cogl.c index 47e84c5d8..0d8ccfacd 100644 --- a/clutter/cogl/gles/cogl.c +++ b/clutter/cogl/gles/cogl.c @@ -311,6 +311,8 @@ set_clip_plane (GLint plane_num, _cogl_current_matrix_rotate (angle, 0.0f, 0.0f, 1.0f); _cogl_current_matrix_translate (-vertex_a[0], -vertex_a[1], -vertex_a[2]); + _cogl_current_matrix_state_flush (); + plane[0] = 0; plane[1] = -1.0; plane[2] = 0;