[vlc-devel] [PATCH] vout:opengl: do the texture initial resize when the output chroma is known
Steve Lhomme
robux4 at ycbcr.xyz
Tue Jan 29 10:26:37 CET 2019
It's even bypassing the call to ResizeFormatToGLMaxTexSize().
---
modules/video_output/opengl/display.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/video_output/opengl/display.c b/modules/video_output/opengl/display.c
index 087e288034..9a5d5e4b8c 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;
@@ -145,6 +143,8 @@ static int Open(vout_display_t *vd, const vout_display_cfg_t *cfg,
if (sys->vgl == NULL)
goto error;
+ vlc_gl_Resize (sys->gl, cfg->display.width, cfg->display.height);
+
vd->sys = sys;
vd->info.subpicture_chromas = spu_chromas;
vd->pool = Pool;
--
2.17.1
More information about the vlc-devel
mailing list