summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.iOS
diff options
context:
space:
mode:
authorStephane Delcroix <stephane@delcroix.org>2017-05-23 18:04:25 (GMT)
committerRui Marinho <me@ruimarinho.net>2017-05-23 18:04:25 (GMT)
commit9a443a8508d148c8fb12ac8f0d9128a4177b550b (patch)
tree02f02c6d8de849e7a111395fd7d429ba3a3ca01a /Xamarin.Forms.Platform.iOS
parent877905611c0ba6bb8551dd665f528a970e354274 (diff)
downloadxamarin-forms-9a443a8508d148c8fb12ac8f0d9128a4177b550b.zip
xamarin-forms-9a443a8508d148c8fb12ac8f0d9128a4177b550b.tar.gz
xamarin-forms-9a443a8508d148c8fb12ac8f0d9128a4177b550b.tar.bz2
Fix animations with GLViews (#931)
* null guard _displayLink (bz42755) * change NSRunLoop mode (fix bz41413)
Diffstat (limited to 'Xamarin.Forms.Platform.iOS')
-rw-r--r--Xamarin.Forms.Platform.iOS/Renderers/OpenGLViewRenderer.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Xamarin.Forms.Platform.iOS/Renderers/OpenGLViewRenderer.cs b/Xamarin.Forms.Platform.iOS/Renderers/OpenGLViewRenderer.cs
index 619aaad..07fa997 100644
--- a/Xamarin.Forms.Platform.iOS/Renderers/OpenGLViewRenderer.cs
+++ b/Xamarin.Forms.Platform.iOS/Renderers/OpenGLViewRenderer.cs
@@ -76,12 +76,12 @@ namespace Xamarin.Forms.Platform.iOS
control.Display();
if (control == null || model == null || !model.HasRenderLoop)
{
- _displayLink.Invalidate();
- _displayLink.Dispose();
+ _displayLink?.Invalidate();
+ _displayLink?.Dispose();
_displayLink = null;
}
});
- _displayLink.AddToRunLoop(NSRunLoop.Current, NSRunLoop.NSDefaultRunLoopMode);
+ _displayLink.AddToRunLoop(NSRunLoop.Current, NSRunLoop.NSRunLoopCommonModes);
}
class Delegate : GLKViewDelegate