diff options
author | Jan Ekström <jeebjp@gmail.com> | 2019-10-30 16:49:55 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-10-30 15:54:41 +0100 |
commit | 17ad806993b3eb2884dc3c9af2dd723440c54fde (patch) | |
tree | 332940e38f67e92ed8459fed93a04fa6e60be4c4 /video/out | |
parent | fc29620ec876b8cf8a95e9d1aedd24e76ef3204c (diff) | |
download | mpv-17ad806993b3eb2884dc3c9af2dd723440c54fde.tar.bz2 mpv-17ad806993b3eb2884dc3c9af2dd723440c54fde.tar.xz |
vo_gpu/opengl: fully initialize FBO when passing it to rendering
Until now, we only properly initialized two values, leaving the
rest be garbage.
Fixes #7104
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/opengl/context.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/video/out/opengl/context.c b/video/out/opengl/context.c index 530fc54a85..d9b3925983 100644 --- a/video/out/opengl/context.c +++ b/video/out/opengl/context.c @@ -235,8 +235,10 @@ int ra_gl_ctx_color_depth(struct ra_swapchain *sw) bool ra_gl_ctx_start_frame(struct ra_swapchain *sw, struct ra_fbo *out_fbo) { struct priv *p = sw->priv; - out_fbo->tex = p->wrapped_fb; - out_fbo->flip = !p->params.flipped; // OpenGL FBs are normally flipped + *out_fbo = (struct ra_fbo) { + .tex = p->wrapped_fb, + .flip = !p->params.flipped, // OpenGL FBs are normally flipped + }; return true; } |