Skip to content

Commit

Permalink
fix(video/ios): fix disposeMPV
Browse files Browse the repository at this point in the history
  • Loading branch information
birros committed Sep 15, 2023
1 parent 0b7c6b0 commit 70d7777
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions media_kit_video/ios/Classes/plugin/TextureHW.swift
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ public class TextureHW: NSObject, FlutterTexture, ResizableTextureProtocol {
}

private func disposeMPV() {
CGLSetCurrentContext(context)
EAGLContext.setCurrent(context)
defer {
OpenGLHelpers.checkError("disposeMPV")
CGLSetCurrentContext(nil)
OpenGLESHelpers.checkError("disposeMPV")
EAGLContext.setCurrent(nil)
}

mpv_render_context_set_update_callback(renderContext, nil, nil)
Expand Down

0 comments on commit 70d7777

Please sign in to comment.