Crash fix.

This commit is contained in:
Dmitry Yunitsky 2014-08-19 12:34:04 +03:00 committed by Alex Zolotarev
parent 4b193c7bd6
commit fa5c2a3eee

View file

@ -242,7 +242,7 @@ public abstract class NvEventQueueActivity extends MapsWithMeBaseActivity implem
*/
protected boolean CleanupEGL()
{
return mEglWrapper.TerminateEGL();
return mEglWrapper != null && mEglWrapper.TerminateEGL();
}
protected boolean CreateSurfaceEGL()