[vlc-commits] opengl: remove unused code
Romain Vimont
git at videolan.org
Thu Jun 4 11:04:33 CEST 2020
vlc | branch: master | Romain Vimont <rom1v at videolabs.io> | Fri Apr 24 11:00:54 2020 +0200| [a4fbbd1c8ce18ebadafda30063b2b82df62c1abb] | committer: Alexandre Janniaux
opengl: remove unused code
The glexts variable was never used in vlc_gl_interop_New().
Signed-off-by: Alexandre Janniaux <ajanni at videolabs.io>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a4fbbd1c8ce18ebadafda30063b2b82df62c1abb
---
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 a091a88703..8bd71110dc 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;
More information about the vlc-commits
mailing list