[vlc-commits] [Git][videolan/vlc][master] caopengllayer: flush the texture uploads in prepare

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Mon Oct 5 07:39:28 UTC 2026



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
48fc4c62 by Jaeke Barkin at 2026-10-05T09:23:02+02:00
caopengllayer: flush the texture uploads in prepare

Core Animation does not call -drawInCGLContext:, the only place that
flushes, while the layer is not drawn (e.g. minimized window), but the
vout keeps preparing pictures, so the uploads pile up in GPU memory.

Fixes #30174

- - - - -


1 changed file:

- modules/video_output/caopengllayer.m


Changes:

=====================================
modules/video_output/caopengllayer.m
=====================================
@@ -375,6 +375,10 @@ static void PictureRender (vout_display_t *vd, picture_t *pic,
             sys->change_projection = false;
         }
         vout_display_opengl_Prepare(sys->vgl, pic, subpicture);
+        // Submit the rendering so that it is ready when
+        // vout_display_opengl_Display() is called, and so that the command
+        // buffer does not fill up if it is never called.
+        glFlush();
         vlc_gl_ReleaseCurrent(sys->gl);
 
         VLCVideoLayerView *view = (__bridge VLCVideoLayerView *)sys->gl->sys;



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/48fc4c626285f58f0e3359bc483d978b16c9421a

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/48fc4c626285f58f0e3359bc483d978b16c9421a
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list