[vlc-commits] opengl: remove redundant initial vlc_gl_Resize()

Rémi Denis-Courmont git at videolan.org
Thu Jan 31 19:00:06 CET 2019


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jan 31 19:43:34 2019 +0200| [f8e0108a4b1ed563094c968c7b6ddf887382e221] | committer: Rémi Denis-Courmont

opengl: remove redundant initial vlc_gl_Resize()

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f8e0108a4b1ed563094c968c7b6ddf887382e221
---

 modules/video_output/opengl/display.c | 2 --
 src/video_output/opengl.c             | 1 -
 2 files changed, 3 deletions(-)

diff --git a/modules/video_output/opengl/display.c b/modules/video_output/opengl/display.c
index d4f1875cca..cb4b9a4468 100644
--- a/modules/video_output/opengl/display.c
+++ b/modules/video_output/opengl/display.c
@@ -130,8 +130,6 @@ static int Open(vout_display_t *vd, const vout_display_cfg_t *cfg,
     if (sys->gl == NULL)
         goto error;
 
-    vlc_gl_Resize (sys->gl, cfg->display.width, cfg->display.height);
-
     /* Initialize video display */
     const vlc_fourcc_t *spu_chromas;
 
diff --git a/src/video_output/opengl.c b/src/video_output/opengl.c
index 61dfdc4f67..2f684323b7 100644
--- a/src/video_output/opengl.c
+++ b/src/video_output/opengl.c
@@ -82,7 +82,6 @@ vlc_gl_t *vlc_gl_Create(const struct vout_display_cfg *restrict cfg,
 
     vlc_gl_t *gl = &glpriv->gl;
     gl->surface = wnd;
-    /* Resize() should be called with the proper size before Swap() */
     gl->module = vlc_module_load(gl, type, name, true, vlc_gl_start, gl,
                                  cfg->display.width, cfg->display.height);
     if (gl->module == NULL)



More information about the vlc-commits mailing list