[vlc-devel] [PATCH 01/10] opengl: remove unused code

Romain Vimont rom1v at videolabs.io
Wed May 20 16:08:12 CEST 2020


The glexts variable was never used in vlc_gl_interop_New().
---
 modules/video_output/opengl/interop.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/modules/video_output/opengl/interop.c b/modules/video_output/opengl/interop.c
index a091a88703d3..8bd71110dc73 100644
--- a/modules/video_output/opengl/interop.c
+++ b/modules/video_output/opengl/interop.c
@@ -34,14 +34,6 @@ vlc_gl_interop_New(struct vlc_gl_t *gl, const struct vlc_gl_api *api,
                    vlc_video_context *context, const video_format_t *fmt,
                    bool subpics)
 {
-    const char *glexts = (const char *) api->vt.GetString(GL_EXTENSIONS);
-    assert(glexts);
-    if (!glexts)
-    {
-        msg_Err(gl, "glGetString returned NULL");
-        return NULL;
-    }
-
     struct vlc_gl_interop *interop = vlc_object_create(gl, sizeof(*interop));
     if (!interop)
         return NULL;
-- 
2.27.0.rc0



More information about the vlc-devel mailing list