Merge pull request #461 from tzachshabtay/OpenTK_AndroidCrashes
Fix 2 crashes on Android
This commit is contained in:
commit
f30a6552f8
2 changed files with 2 additions and 2 deletions
|
@ -457,7 +457,7 @@ namespace OpenTK.Platform.Android
|
|||
|
||||
// if the render thread is paused, let it run so it exits
|
||||
pauseSignal.Set ();
|
||||
stopWatch.Stop ();
|
||||
if (stopWatch != null) stopWatch.Stop ();
|
||||
}
|
||||
|
||||
void PauseThread ()
|
||||
|
|
|
@ -57,7 +57,7 @@ namespace OpenTK.Platform.Android {
|
|||
|
||||
public bool HasSurface
|
||||
{
|
||||
get { return eglWindowInfo.Surface != IntPtr.Zero; }
|
||||
get { return eglWindowInfo != null && eglWindowInfo.Surface != IntPtr.Zero; }
|
||||
}
|
||||
|
||||
public ISurfaceHolder Holder {
|
||||
|
|
Loading…
Reference in a new issue