From 7fea24d585c5d2c93f6b6995db96cfbe0dd95a97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Wed, 25 Jan 2023 18:44:29 +0100 Subject: [PATCH] cursor-renderer: Realize texture before using it for its size If we don't, well return an empty size, despite it in practice shouldn't. Part-of: --- src/backends/meta-cursor-renderer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backends/meta-cursor-renderer.c b/src/backends/meta-cursor-renderer.c index 173b4d26a..e85298522 100644 --- a/src/backends/meta-cursor-renderer.c +++ b/src/backends/meta-cursor-renderer.c @@ -338,6 +338,7 @@ meta_cursor_renderer_calculate_rect (MetaCursorRenderer *renderer, int width, height; float texture_scale; + meta_cursor_sprite_realize_texture (cursor_sprite); texture = meta_cursor_sprite_get_cogl_texture (cursor_sprite); if (!texture) return (graphene_rect_t) GRAPHENE_RECT_INIT_ZERO;