From 2f3ea4590a55911b0916517878d281526b2c9bd0 Mon Sep 17 00:00:00 2001 From: Kirill Primak Date: Sun, 24 Mar 2024 13:10:52 +0300 Subject: [PATCH] viewporter: fix outdated docs wlr_render_subtexture_with_matrix() has been removed. --- include/wlr/types/wlr_viewporter.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/wlr/types/wlr_viewporter.h b/include/wlr/types/wlr_viewporter.h index 8a179367..e1e2ec04 100644 --- a/include/wlr/types/wlr_viewporter.h +++ b/include/wlr/types/wlr_viewporter.h @@ -18,9 +18,9 @@ * * - The size of the surface texture may not match the surface size anymore. * Compositors must use the surface size only. - * - Compositors must call wlr_render_subtexture_with_matrix() when rendering a - * surface texture with the source box returned by - * wlr_surface_get_buffer_source_box(). + * - When rendering a surface texture, compositors should use + * wlr_surface_get_buffer_source_box() to get the source rectangle and crop + * the texture accordingly. */ struct wlr_viewporter { struct wl_global *global;