summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wlr_scene.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wlr_scene.c b/wlr_scene.c
index 676fe12..86eb2bf 100644
--- a/wlr_scene.c
+++ b/wlr_scene.c
@@ -801,8 +801,8 @@ static void render_texture(struct wlr_output *output,
struct wlr_fbox default_src_box = {0};
if (wlr_fbox_empty(src_box)) {
- default_src_box.width = dst_box->width;
- default_src_box.height = dst_box->height;
+ default_src_box.width = texture->width;
+ default_src_box.height = texture->height;
src_box = &default_src_box;
}