diff options
author | Chia-I Wu <[email protected]> | 2010-11-24 15:42:48 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2010-12-01 11:23:51 +0800 |
commit | 165cb19abc4279839b0f5f53eb2feac60c2f415e (patch) | |
tree | 9b0b6e7a897d8194ccbff81b3941c0c547fe195d /src/gallium/state_trackers/vega/mask.c | |
parent | d873f1f5b63e7243c20751e92389e4189d39fd42 (diff) |
st/vega: Make path_render and path_stroke take a matrix.
Diffstat (limited to 'src/gallium/state_trackers/vega/mask.c')
-rw-r--r-- | src/gallium/state_trackers/vega/mask.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/vega/mask.c b/src/gallium/state_trackers/vega/mask.c index ce81280dd08..e8a017d9c43 100644 --- a/src/gallium/state_trackers/vega/mask.c +++ b/src/gallium/state_trackers/vega/mask.c @@ -424,6 +424,7 @@ static void mask_layer_render_to(struct vg_mask_layer *layer, struct vg_context *ctx = vg_current_context(); const VGfloat fill_color[4] = {1.f, 1.f, 1.f, 1.f}; struct pipe_screen *screen = ctx->pipe->screen; + struct matrix *mat = &ctx->state.vg.path_user_to_surface_matrix; struct pipe_surface *surface; surface = screen->get_tex_surface(screen, layer->sampler_view->texture, 0, 0, 0, @@ -437,12 +438,11 @@ static void mask_layer_render_to(struct vg_mask_layer *layer, setup_mask_framebuffer(surface, layer->width, layer->height); if (paint_modes & VG_FILL_PATH) { - struct matrix *mat = &ctx->state.vg.path_user_to_surface_matrix; path_fill(path, mat); } if (paint_modes & VG_STROKE_PATH){ - path_stroke(path); + path_stroke(path, mat); } |