From 9884a2c3d21b29c4c71662371aca5e5a771c78f2 Mon Sep 17 00:00:00 2001 From: Robert Mader Date: Sun, 20 Nov 2022 07:15:06 +0100 Subject: shaped-texture: Move variable declaration to the top Just a minor cleanup. Part-of: --- src/compositor/meta-shaped-texture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compositor/meta-shaped-texture.c b/src/compositor/meta-shaped-texture.c index 63f144c6b..6a37111af 100644 --- a/src/compositor/meta-shaped-texture.c +++ b/src/compositor/meta-shaped-texture.c @@ -754,6 +754,7 @@ do_paint_content (MetaShapedTexture *stex, if (!blended_tex_region || !cairo_region_is_empty (blended_tex_region)) { CoglPipeline *blended_pipeline; + CoglColor color; if (stex->mask_texture == NULL) { @@ -769,7 +770,6 @@ do_paint_content (MetaShapedTexture *stex, cogl_pipeline_set_layer_texture (blended_pipeline, 0, paint_tex); cogl_pipeline_set_layer_filters (blended_pipeline, 0, min_filter, mag_filter); - CoglColor color; cogl_color_init_from_4ub (&color, opacity, opacity, opacity, opacity); cogl_pipeline_set_color (blended_pipeline, &color); -- cgit v1.2.1