[clutter] Fix compiler warning
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] Fix compiler warning
- Date: Thu, 23 Feb 2012 12:16:24 +0000 (UTC)
commit cf435f9512d41139ddb3f6f7eb07bce24289d561
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Thu Feb 23 11:31:26 2012 +0000
Fix compiler warning
clutter/clutter-actor.c | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c
index e844a9a..eb8516b 100644
--- a/clutter/clutter-actor.c
+++ b/clutter/clutter-actor.c
@@ -2693,11 +2693,7 @@ _clutter_actor_draw_paint_volume_full (ClutterActor *self,
CoglFramebuffer *fb = cogl_get_draw_framebuffer ();
if (outline == NULL)
- {
- CoglContext *ctx =
- clutter_backend_get_cogl_context (clutter_get_default_backend ());
- outline = cogl_pipeline_new (ctx);
- }
+ outline = cogl_pipeline_new (ctx);
_clutter_paint_volume_complete (pv);
@@ -2724,7 +2720,8 @@ _clutter_actor_draw_paint_volume_full (ClutterActor *self,
line_ends[22] = pv->vertices[3]; line_ends[23] = pv->vertices[7];
}
- prim = cogl_primitive_new_p3 (ctx, COGL_VERTICES_MODE_LINES, n_vertices,
+ prim = cogl_primitive_new_p3 (ctx, COGL_VERTICES_MODE_LINES,
+ n_vertices,
(CoglVertexP3 *)line_ends);
cogl_pipeline_set_color (outline, color);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]