Merge pull request #461 from tzachshabtay/OpenTK_AndroidCrashes

Fix 2 crashes on Android
This commit is contained in:
varon 2016-12-12 09:24:18 +02:00 committed by GitHub
commit f30a6552f8
2 changed files with 2 additions and 2 deletions

View file

@ -457,7 +457,7 @@ namespace OpenTK.Platform.Android
// if the render thread is paused, let it run so it exits // if the render thread is paused, let it run so it exits
pauseSignal.Set (); pauseSignal.Set ();
stopWatch.Stop (); if (stopWatch != null) stopWatch.Stop ();
} }
void PauseThread () void PauseThread ()

View file

@ -57,7 +57,7 @@ namespace OpenTK.Platform.Android {
public bool HasSurface public bool HasSurface
{ {
get { return eglWindowInfo.Surface != IntPtr.Zero; } get { return eglWindowInfo != null && eglWindowInfo.Surface != IntPtr.Zero; }
} }
public ISurfaceHolder Holder { public ISurfaceHolder Holder {