summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/video.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-01-08 11:22:55 +0100
committerwm4 <wm4@nowhere>2017-01-08 11:22:55 +0100
commite0f25010c7e7bc5375917d8f5dc2a009849c68fc (patch)
treeb860cfcd946a40e7754fd918584a5dedd462d143 /video/out/opengl/video.c
parentc2fdedc2ecc946feb27c80ad54cb34ed1dcd0d48 (diff)
downloadmpv-e0f25010c7e7bc5375917d8f5dc2a009849c68fc.tar.bz2
mpv-e0f25010c7e7bc5375917d8f5dc2a009849c68fc.tar.xz
vo_opengl: replace 2 memsets
Cosmetic change.
Diffstat (limited to 'video/out/opengl/video.c')
-rw-r--r--video/out/opengl/video.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c
index ca76865240..f9f1f870e5 100644
--- a/video/out/opengl/video.c
+++ b/video/out/opengl/video.c
@@ -1685,7 +1685,7 @@ static void pass_read_video(struct gl_video *p)
GLSLF("// merging plane %d ...\n", i);
copy_img_tex(p, &num, tex[i]);
first = MPMIN(first, i);
- memset(&tex[i], 0, sizeof(tex[i]));
+ tex[i] = (struct img_tex){0};
}
}
@@ -1694,7 +1694,7 @@ static void pass_read_video(struct gl_video *p)
copy_img_tex(p, &num, tex[n]);
finish_pass_fbo(p, &p->merge_fbo[n], tex[n].w, tex[n].h, 0);
tex[first] = img_tex_fbo(&p->merge_fbo[n], tex[n].type, num);
- memset(&tex[n], 0, sizeof(tex[n]));
+ tex[n] = (struct img_tex){0};
}
}