Index: remoting/ios/session/remoting_client.mm |
diff --git a/remoting/ios/session/remoting_client.mm b/remoting/ios/session/remoting_client.mm |
index 6429c2cd4e19036000747dd8d5c6f6d133902202..939f428d1a8fe52a90b3b5d1e546ab22a5be6fc3 100644 |
--- a/remoting/ios/session/remoting_client.mm |
+++ b/remoting/ios/session/remoting_client.mm |
@@ -133,6 +133,7 @@ NSString* const kHostSessionPin = @"kHostSessionPin"; |
if (_session) { |
_session->Disconnect(); |
} |
+ _displayHandler = nil; |
// TODO(nicholss): Do we need to cleanup more? |
} |
@@ -222,6 +223,8 @@ NSString* const kHostSessionPin = @"kHostSessionPin"; |
} |
- (void)surfaceChanged:(const CGRect&)frame { |
+ // Note that GLKView automatically sets the OpenGL viewport size to the size |
+ // of the surface. |
[_displayHandler onSurfaceChanged:frame]; |
_gestureInterpreter->OnSurfaceSizeChanged(frame.size.width, |
frame.size.height); |