[vlc-commits] opengl: fill opengl_tex_converter_t on success

Thomas Guillem git at videolan.org
Wed Nov 22 16:12:56 CET 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Nov 22 16:11:04 2017 +0100| [1d828f2916141c690cb3b0410d52230662834d0c] | committer: Thomas Guillem

opengl: fill opengl_tex_converter_t on success

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

 modules/video_output/opengl/fragment_shaders.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/video_output/opengl/fragment_shaders.c b/modules/video_output/opengl/fragment_shaders.c
index 329259224a..9cdab663da 100644
--- a/modules/video_output/opengl/fragment_shaders.c
+++ b/modules/video_output/opengl/fragment_shaders.c
@@ -306,8 +306,6 @@ tc_rgb_base_init(opengl_tex_converter_t *tc, GLenum tex_target,
 {
     (void) tex_target;
 
-
-    tc->tex_count = 1;
     switch (chroma)
     {
         case VLC_CODEC_RGB32:
@@ -328,6 +326,7 @@ tc_rgb_base_init(opengl_tex_converter_t *tc, GLenum tex_target,
         default:
             return VLC_EGENERIC;
     }
+    tc->tex_count = 1;
     return VLC_SUCCESS;
 }
 



More information about the vlc-commits mailing list