gl renderer: Don't render unblurred text shadows to a texture

We can do the same thing by simply drawing the text in the given shadow
color.
This commit is contained in:
Timm Bäder 2017-12-01 11:02:26 +01:00
parent d5a759652f
commit 8089cde977

View File

@ -1142,6 +1142,18 @@ gsk_gl_renderer_add_render_ops (GskGLRenderer *self,
continue; continue;
} }
if (gsk_render_node_get_node_type (child) == GSK_TEXT_NODE)
{
offset_matrix = builder->current_modelview;
graphene_matrix_translate (&offset_matrix, &GRAPHENE_POINT3D_INIT (shadow->dx, shadow->dy, 0));
prev_modelview = ops_set_modelview (builder, &offset_matrix);
render_text_node (self, child, builder, &shadow->color, TRUE);
ops_set_modelview (builder, &prev_modelview);
continue;
}
add_offscreen_ops (self, builder, min_x, max_x, min_y, max_y, child, &texture_id, &is_offscreen); add_offscreen_ops (self, builder, min_x, max_x, min_y, max_y, child, &texture_id, &is_offscreen);
ops_set_program (builder, &self->shadow_program); ops_set_program (builder, &self->shadow_program);