if (context == EGL_NO_CONTEXT)
exitEglError("Failed to create context");
if (eglMakeCurrent(display, surface, surface, context) == EGL_FALSE)
if (context == EGL_NO_CONTEXT)
exitEglError("Failed to create context");
if (eglMakeCurrent(display, surface, surface, context) == EGL_FALSE)