[vlc-commits] [Git][videolan/vlc][master] opengl: sub_renderer: fix texture release

Steve Lhomme (@robUx4) gitlab at videolan.org
Wed Sep 16 06:32:28 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
76b7117a by Alexandre Janniaux at 2026-09-16T06:20:46+00:00
opengl: sub_renderer: fix texture release

vlc_gl_sub_renderer_Delete() deleted the textures for the subpicture
region using glDeleteTextures() directly, instead of the provided
interop's DeleteTextures() operation.

- - - - -


1 changed file:

- modules/video_output/opengl/sub_renderer.c


Changes:

=====================================
modules/video_output/opengl/sub_renderer.c
=====================================
@@ -250,7 +250,7 @@ vlc_gl_sub_renderer_Delete(struct vlc_gl_sub_renderer *sr)
     for (unsigned i = 0; i < sr->region_count; ++i)
     {
         if (sr->regions[i].texture)
-            sr->vt->DeleteTextures(1, &sr->regions[i].texture);
+            vlc_gl_interop_DeleteTextures(sr->interop, &sr->regions[i].texture);
     }
     free(sr->regions);
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/76b7117ad336c8ffc04884c69be639338fe69235

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/76b7117ad336c8ffc04884c69be639338fe69235
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