[cogl] flush matrices in _cogl_add_path_to_stencil_buffer

Before calling glRectf we need to ensure we flush the modelview and
projection matrices.
This commit is contained in:
Robert Bragg 2009-06-22 00:49:20 +01:00
parent a7974f8e6f
commit 4dada4c49e

View File

@ -218,6 +218,8 @@ _cogl_add_path_to_stencil_buffer (floatVec2 nodes_min,
_cogl_current_matrix_push (); _cogl_current_matrix_push ();
_cogl_current_matrix_identity (); _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);
glRectf (-1.0, -1.0, 1.0, 1.0); glRectf (-1.0, -1.0, 1.0, 1.0);