summaryrefslogtreecommitdiffstats
path: root/video/out
diff options
context:
space:
mode:
authorYour Name <you@example.com>2021-05-07 14:52:34 +0200
committerYour Name <you@example.com>2021-05-07 15:01:15 +0200
commitd9008d2aa84467064c3d76407f5f6a5b86e76520 (patch)
tree8236a7aceab7a092ef6e5ad47840dc7ea3f7ef02 /video/out
parent623b92465fa73d9dfb24a58c443d313bbaeeecc5 (diff)
downloadmpv-d9008d2aa84467064c3d76407f5f6a5b86e76520.tar.bz2
mpv-d9008d2aa84467064c3d76407f5f6a5b86e76520.tar.xz
Revert "vo_gpu: revert 8a09299 and conditionally clear framebuffer again"
This reverts commit b8156a9a86ae4ff087b1b255c68a3ca38ec2d086. Apparently there are two problems here. One on Linux (fixed by the original change and this revert) and one on alternative-medicine-Job's OS. Since the latter has deprecated OpenGL and OpenGL is a second-class citizen, I think it's better to prefer the fix for a platform that is still alive.
Diffstat (limited to 'video/out')
-rw-r--r--video/out/gpu/video.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/video/out/gpu/video.c b/video/out/gpu/video.c
index 597286a550..2e0cfbd19b 100644
--- a/video/out/gpu/video.c
+++ b/video/out/gpu/video.c
@@ -3251,11 +3251,9 @@ void gl_video_render_frame(struct gl_video *p, struct vo_frame *frame,
bool has_frame = !!frame->current;
- if (!has_frame || !mp_rect_equals(&p->dst_rect, &target_rc)) {
- struct m_color c = p->clear_color;
- float clear_color[4] = {c.r / 255.0, c.g / 255.0, c.b / 255.0, c.a / 255.0};
- p->ra->fns->clear(p->ra, fbo.tex, clear_color, &target_rc);
- }
+ struct m_color c = p->clear_color;
+ float clear_color[4] = {c.r / 255.0, c.g / 255.0, c.b / 255.0, c.a / 255.0};
+ p->ra->fns->clear(p->ra, fbo.tex, clear_color, &target_rc);
if (p->hwdec_overlay) {
if (has_frame) {