| Index: webrtc/sdk/objc/Framework/Classes/UI/RTCNSGLVideoView.m
|
| diff --git a/webrtc/sdk/objc/Framework/Classes/UI/RTCNSGLVideoView.m b/webrtc/sdk/objc/Framework/Classes/UI/RTCNSGLVideoView.m
|
| index 66145fb506cd6b7132e97b7ceb00ab08eace437a..4ca55393e79ab9bd023408600d388f4513e28ebf 100644
|
| --- a/webrtc/sdk/objc/Framework/Classes/UI/RTCNSGLVideoView.m
|
| +++ b/webrtc/sdk/objc/Framework/Classes/UI/RTCNSGLVideoView.m
|
| @@ -77,6 +77,7 @@ - (void)drawRect:(NSRect)rect {
|
| - (void)reshape {
|
| [super reshape];
|
| NSRect frame = [self frame];
|
| + [self ensureGLContext];
|
| CGLLockContext([[self openGLContext] CGLContextObj]);
|
| glViewport(0, 0, frame.size.width, frame.size.height);
|
| CGLUnlockContext([[self openGLContext] CGLContextObj]);
|
|
|