Skip to content

Commit

Permalink
fix: 修复 vap 在 OpenGLES 游戏场景下,会导致 游戏里的纹理不会释放的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
likai committed Jul 6, 2023
1 parent c4f7c0c commit c8df447
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iOS/QGVAPlayer/QGVAPlayer/Classes/UIView+VAP.m
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ - (void)hwd_stopHWDMP4 {
}
[self.hwd_openGLView dispose];
glFinish();
[EAGLContext setCurrentContext:nil];
}
if (self.hwd_metalView) {
[self.hwd_metalView dispose];
Expand All @@ -146,7 +147,6 @@ - (void)hwd_stopHWDMP4 {
self.hwd_decodeConfig = nil;
self.hwd_currentFrameInstance = nil;
self.hwd_fileInfo = nil;
[EAGLContext setCurrentContext:nil];
}

//播放完成
Expand Down

0 comments on commit c8df447

Please sign in to comment.