mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
gl renderer: use w axis vector from graphene
Instead of initializing our own one every time.
This commit is contained in:
parent
7a5567bf41
commit
4ab3aada3f
@ -201,15 +201,13 @@ color_matrix_modifies_alpha (GskRenderNode *node)
|
||||
const graphene_matrix_t *matrix = gsk_color_matrix_node_peek_color_matrix (node);
|
||||
const graphene_vec4_t *offset = gsk_color_matrix_node_peek_color_offset (node);
|
||||
graphene_vec4_t row3;
|
||||
graphene_vec4_t id_row3;
|
||||
|
||||
if (graphene_vec4_get_w (offset) != 0.0f)
|
||||
return TRUE;
|
||||
|
||||
graphene_vec4_init (&id_row3, 0, 0, 0, 1);
|
||||
graphene_matrix_get_row (matrix, 3, &row3);
|
||||
|
||||
return !graphene_vec4_equal (&id_row3, &row3);
|
||||
return !graphene_vec4_equal (graphene_vec4_w_axis (), &row3);
|
||||
}
|
||||
|
||||
static inline void
|
||||
|
Loading…
Reference in New Issue
Block a user