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
This commit is contained in:
Jan Ekström 2019-10-30 16:49:55 +02:00 committed by wm4
parent fc29620ec8
commit 17ad806993
1 changed files with 4 additions and 2 deletions

View File

@ -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;
}