[vlc-commits] opengl: remove useless calls

Thomas Guillem git at videolan.org
Thu Jan 26 12:47:45 CET 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Jan 25 17:26:43 2017 +0100| [b9f670d0056c3063f9aa5a2d755d22e489ee68df] | committer: Thomas Guillem

opengl: remove useless calls

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

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

diff --git a/modules/video_output/opengl/vout_helper.c b/modules/video_output/opengl/vout_helper.c
index 3ad38b3..24c229f 100644
--- a/modules/video_output/opengl/vout_helper.c
+++ b/modules/video_output/opengl/vout_helper.c
@@ -1216,9 +1216,6 @@ static void DrawWithShaders(vout_display_opengl_t *vgl,
                                  GL_FLOAT, 0, 0, 0);
     }
     free(textureCoord);
-    glActiveTexture(GL_TEXTURE0 + 0);
-    glClientActiveTexture(GL_TEXTURE0 + 0);
-
     vgl->api.BindBuffer(GL_ARRAY_BUFFER, vgl->vertex_buffer_object);
     vgl->api.BufferData(GL_ARRAY_BUFFER, nbVertices * 3 * sizeof(GLfloat), vertexCoord, GL_STATIC_DRAW);
     free(vertexCoord);
@@ -1243,7 +1240,6 @@ static void DrawWithShaders(vout_display_opengl_t *vgl,
     vgl->api.UniformMatrix4fv(vgl->api.GetUniformLocation(program, "ZoomMatrix"),
                           1, GL_FALSE, zoomMatrix);
 
-    vgl->api.BindBuffer(GL_ELEMENT_ARRAY_BUFFER, vgl->index_buffer_object);
     glDrawElements(GL_TRIANGLES, nbIndices, GL_UNSIGNED_SHORT, 0);
 }
 



More information about the vlc-commits mailing list