[vlc-commits] opengl: remove useless code

Thomas Guillem git at videolan.org
Fri Feb 3 09:58:10 CET 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Feb  3 09:54:48 2017 +0100| [467f89ab24e3a0fc04b49479e3af503aa33aac9c] | committer: Thomas Guillem

opengl: remove useless code

You need to activate a texture before rendering it. It's useless to do it
before allocating/modifing it.

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

 modules/video_output/opengl/vout_helper.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/modules/video_output/opengl/vout_helper.c b/modules/video_output/opengl/vout_helper.c
index aa7775a..d573750 100644
--- a/modules/video_output/opengl/vout_helper.c
+++ b/modules/video_output/opengl/vout_helper.c
@@ -395,8 +395,6 @@ GenTextures(const opengl_tex_converter_t *tc,
 
     for (unsigned i = 0; i < tc->tex_count; i++)
     {
-        glActiveTexture(GL_TEXTURE0 + i);
-        glClientActiveTexture(GL_TEXTURE0 + i);
         glBindTexture(tc->tex_target, textures[i]);
 
 #if !defined(USE_OPENGL_ES2)



More information about the vlc-commits mailing list