From 7598c551a2621129ac85b944eb6ebdc09c9c3e74 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Mon, 16 Mar 2009 15:09:33 +0000 Subject: [PATCH] [cogl] Flush matrix before clip planes glClipPlane() is affected by modelview matrix so we need to flush before calling it. Signed-off-by: Emmanuele Bassi --- gl/cogl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gl/cogl.c b/gl/cogl.c index ba92cba36..9bf5dafdb 100644 --- a/gl/cogl.c +++ b/gl/cogl.c @@ -379,6 +379,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;