diff --git a/video/out/gpu/video.c b/video/out/gpu/video.c index eaa53c493f..54961ffa1b 100644 --- a/video/out/gpu/video.c +++ b/video/out/gpu/video.c @@ -2728,8 +2728,8 @@ static void pass_colormanage(struct gl_video *p, struct pl_color_space src, cparams.levels_out = PL_COLOR_LEVELS_FULL; p->target_params = (struct mp_image_params){ .imgfmt_name = p->fbo_format ? p->fbo_format->name : "unknown", - .w = p->texture_w, - .h = p->texture_h, + .w = mp_rect_w(p->dst_rect), + .h = mp_rect_h(p->dst_rect), .color = dst, .repr = {.sys = PL_COLOR_SYSTEM_RGB, .levels = cparams.levels_out}, .rotate = p->image_params.rotate,