Commits on Source (3)
-
Fix a crash where the destructor of the VLCOpenGLES2VideoView (.cxx_destruct) is calling the destructor of the EAGL context, which leads into unknown stacktraces in the EAGLContext_setDebugLabel symbol. The setup of the crash needs using CVPixelBuffer backed by an IOSurface, so typically a filter using the VLCCVOpenGLProvider offscreen OpenGL implementation, which seems to imply some live-binding is still in use if we don't close the context soon enough.
f9fc7d64 -
The OpenGL resources are removed when the EAGLContext is destroyed, so there is no need destroying them ourselves, which avoids one callsite where we're making a context current and avoid listing the resources.
1ccf3eac -
The CVOpenGLTextureRef is created from the CVPixelBuffer. Although it should reference it, there's no reason not to destroy them in the correct order.
eb5bc46d