diff options
author | Robert Bragg <robert@linux.intel.com> | 2011-11-20 19:02:33 +0000 |
---|---|---|
committer | Robert Bragg <robert@linux.intel.com> | 2011-11-29 12:38:44 +0000 |
commit | 1319af2bb7692aa3a4ac72cc4e70e7ad7c18c94e (patch) | |
tree | 1623de44750cde3c8c170ec6a2185003f61bc5a6 | |
parent | b35d8183529de4814a62e676121ffea7c5847703 (diff) | |
download | cogl-1319af2bb7692aa3a4ac72cc4e70e7ad7c18c94e.tar.gz |
stash: use cogl_framebuffer_push_path_clip in cogl2-path.c
-rw-r--r-- | cogl/cogl2-path.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cogl/cogl2-path.c b/cogl/cogl2-path.c index 8dd21ebc..781b8847 100644 --- a/cogl/cogl2-path.c +++ b/cogl/cogl2-path.c @@ -272,6 +272,8 @@ _cogl_path_get_bounds (CoglPath *path, static void _cogl_path_fill_nodes_with_clipped_rectangle (CoglPath *path) { + CoglFramebuffer *fb; + _COGL_GET_CONTEXT (ctx, NO_RETVAL); if (!(ctx->private_feature_flags & COGL_PRIVATE_FEATURE_STENCIL_BUFFER)) @@ -287,12 +289,13 @@ _cogl_path_fill_nodes_with_clipped_rectangle (CoglPath *path) } } - cogl_clip_push_from_path (path); + fb = cogl_get_draw_framebuffer (); + cogl_framebuffer_push_path_clip (fb, path); cogl_rectangle (path->data->path_nodes_min.x, path->data->path_nodes_min.y, path->data->path_nodes_max.x, path->data->path_nodes_max.y); - cogl_clip_pop (); + cogl_framebuffer_pop_clip (fb); } static gboolean |