mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-15 14:50:39 +01:00
Don't clear self.videoFrame when setting up OpenGL in the EAGL video view.
It makes sense to clean up self.videoFrame in -teardownGL, but if we happen to have a frame available in -setupGL then it's OK to keep using that frame. Clearing the frame here frequently causes the screen view to go black for a moment when the app returns from the background. Bug: webrtc:10059 Change-Id: Ic62f872a0a582c807cee1e30ea9bb32f31ada341 Reviewed-on: https://webrtc-review.googlesource.com/c/112213 Reviewed-by: Kári Helgason <kthelgason@webrtc.org> Commit-Queue: Kári Helgason <kthelgason@webrtc.org> Cr-Commit-Position: refs/heads/master@{#25816}
This commit is contained in:
parent
2ba65c3a71
commit
154a262b61
1 changed files with 0 additions and 1 deletions
|
@ -251,7 +251,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)setupGL {
|
- (void)setupGL {
|
||||||
self.videoFrame = nil;
|
|
||||||
[self ensureGLContext];
|
[self ensureGLContext];
|
||||||
glDisable(GL_DITHER);
|
glDisable(GL_DITHER);
|
||||||
_timer.isPaused = NO;
|
_timer.isPaused = NO;
|
||||||
|
|
Loading…
Reference in a new issue