From 251913c80e6013561e0cb685693e95023355ab25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sun, 27 May 2018 14:41:56 +0200 Subject: [PATCH] gl renderer: Use offsets for more node types --- gsk/gl/gskglrenderer.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c index 5ccd3a61d8..a0e962524d 100644 --- a/gsk/gl/gskglrenderer.c +++ b/gsk/gl/gskglrenderer.c @@ -696,6 +696,7 @@ render_offset_node (GskGLRenderer *self, case GSK_TEXT_NODE: case GSK_TEXTURE_NODE: case GSK_COLOR_NODE: + case GSK_COLOR_MATRIX_NODE: { ops_offset (builder, dx, dy); gsk_gl_renderer_add_render_ops (self, child, builder); @@ -898,8 +899,8 @@ render_color_matrix_node (GskGLRenderer *self, RenderOpBuilder *builder, const GskQuadVertex *vertex_data) { - const float min_x = node->bounds.origin.x; - const float min_y = node->bounds.origin.y; + const float min_x = builder->dx + node->bounds.origin.x; + const float min_y = builder->dy + node->bounds.origin.y; const float max_x = min_x + node->bounds.size.width; const float max_y = min_y + node->bounds.size.height; int texture_id;