[vlc-commits] macosx: remove variable macosx-glcontext

Alexandre Janniaux git at videolan.org
Thu Jan 28 11:10:24 UTC 2021


vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Tue Jan 26 15:03:52 2021 +0100| [5ef7ba041e68bed4f8baa067f92be0c65e3f252c] | committer: Alexandre Janniaux

macosx: remove variable macosx-glcontext

Unused since cb6b1d5fb6c28893479f737a94da2bc753cbe8b9.

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

 modules/video_output/macosx.m | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/modules/video_output/macosx.m b/modules/video_output/macosx.m
index 9ce48deaaf..ee1feaad09 100644
--- a/modules/video_output/macosx.m
+++ b/modules/video_output/macosx.m
@@ -162,8 +162,6 @@ static int Open (vout_display_t *vd, const vout_display_cfg_t *cfg,
         sys->vgl = NULL;
         sys->gl = NULL;
 
-        var_Create(vlc_object_parent(vd), "macosx-glcontext", VLC_VAR_ADDRESS);
-
         /* Get the drawable object */
         id container = var_CreateGetAddress (vd, "drawable-nsobject");
         if (!container) {
@@ -230,9 +228,6 @@ static int Open (vout_display_t *vd, const vout_display_cfg_t *cfg,
         sys->gl->swap = OpenglSwap;
         sys->gl->get_proc_address = OurGetProcAddress;
 
-        var_SetAddress(vlc_object_parent(vd), "macosx-glcontext",
-                       [[sys->glView openGLContext] CGLContextObj]);
-
         const vlc_fourcc_t *subpicture_chromas;
 
         if (vlc_gl_MakeCurrent(sys->gl) != VLC_SUCCESS)
@@ -273,7 +268,6 @@ static void Close(vout_display_t *vd)
         [sys->glView setVoutDisplay:nil];
 
         var_Destroy (vd, "drawable-nsobject");
-        var_Destroy(vlc_object_parent(vd), "macosx-glcontext");
 
         if (sys->vgl != NULL)
         {



More information about the vlc-commits mailing list