From 17ad806993b3eb2884dc3c9af2dd723440c54fde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Ekstr=C3=B6m?= Date: Wed, 30 Oct 2019 16:49:55 +0200 Subject: 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 --- video/out/opengl/context.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'video') 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; } -- cgit v1.2.3