From 4dada4c49ea7347ac5e236aae9a103e351339ec8 Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Mon, 22 Jun 2009 00:49:20 +0100 Subject: [PATCH] [cogl] flush matrices in _cogl_add_path_to_stencil_buffer Before calling glRectf we need to ensure we flush the modelview and projection matrices. --- gl/cogl-primitives.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gl/cogl-primitives.c b/gl/cogl-primitives.c index 35de5b684..d4ab7de0c 100644 --- a/gl/cogl-primitives.c +++ b/gl/cogl-primitives.c @@ -218,6 +218,8 @@ _cogl_add_path_to_stencil_buffer (floatVec2 nodes_min, _cogl_current_matrix_push (); _cogl_current_matrix_identity (); + _cogl_current_matrix_state_flush (); + glRectf (-1.0, -1.0, 1.0, 1.0); glRectf (-1.0, -1.0, 1.0, 1.0);