This way the node can do the normalization (and maybe stop doing it
in the future).
GSK_VULKAN_SAMPLER_DEFAULT,
&node->bounds,
&state->offset,
- &GRAPHENE_RECT_INIT(0, 0, 1, 1));
+ &node->bounds);
return TRUE;
}
sampler,
&node->bounds,
&state->offset,
- &GRAPHENE_RECT_INIT(0, 0, 1, 1));
+ &node->bounds);
return TRUE;
}
self->image = g_object_ref (image);
self->sampler = sampler;
graphene_rect_offset_r (rect, offset->x, offset->y, &self->rect);
- self->tex_rect = *tex_rect;
+ gsk_vulkan_normalize_tex_coords (&self->tex_rect, rect, tex_rect);
}