mirror of
https://github.com/mpv-player/mpv
synced 2025-02-27 10:50:53 +00:00
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:
parent
fc29620ec8
commit
17ad806993
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user