diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2023-11-24 00:56:46 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2023-11-28 10:46:16 +0100 |
commit | 281b1d89994e3e3a9950d32fc451dff990c2320d (patch) | |
tree | 4c978a78a24151561e638f0474d54f86eca178e6 /video/out/gpu/utils.c | |
parent | f7402ff466d1426bd99eaac546d53708cc14c8b3 (diff) | |
download | mpv-281b1d89994e3e3a9950d32fc451dff990c2320d.tar.bz2 mpv-281b1d89994e3e3a9950d32fc451dff990c2320d.tar.xz |
vo_gpu: don't pass ra_fbo by value
Make it easier on compiler, no need to alloca and copy things around.
Diffstat (limited to 'video/out/gpu/utils.c')
-rw-r--r-- | video/out/gpu/utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/video/out/gpu/utils.c b/video/out/gpu/utils.c index 8a1aacfff5..d18cf6e8e0 100644 --- a/video/out/gpu/utils.c +++ b/video/out/gpu/utils.c @@ -33,10 +33,10 @@ void gl_transform_trans(struct gl_transform t, struct gl_transform *x) gl_transform_vec(t, &x->t[0], &x->t[1]); } -void gl_transform_ortho_fbo(struct gl_transform *t, struct ra_fbo fbo) +void gl_transform_ortho_fbo(struct gl_transform *t, const struct ra_fbo *fbo) { - int y_dir = fbo.flip ? -1 : 1; - gl_transform_ortho(t, 0, fbo.tex->params.w, 0, fbo.tex->params.h * y_dir); + int y_dir = fbo->flip ? -1 : 1; + gl_transform_ortho(t, 0, fbo->tex->params.w, 0, fbo->tex->params.h * y_dir); } float gl_video_scale_ambient_lux(float lmin, float lmax, |