From e0f25010c7e7bc5375917d8f5dc2a009849c68fc Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 8 Jan 2017 11:22:55 +0100 Subject: vo_opengl: replace 2 memsets Cosmetic change. --- video/out/opengl/video.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'video') 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}; } } -- cgit v1.2.3