[cogl] flush matrices in _cogl_add_path_to_stencil_buffer
authorRobert Bragg <robert@linux.intel.com>
Sun, 21 Jun 2009 23:49:20 +0000 (00:49 +0100)
committerRobert Bragg <robert@linux.intel.com>
Tue, 30 Jun 2009 16:13:37 +0000 (17:13 +0100)
Before calling glRectf we need to ensure we flush the modelview and
projection matrices.

clutter/cogl/gl/cogl-primitives.c

index 35de5b6..d4ab7de 100644 (file)
@@ -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);