Fixed bug #5850: Android EGL_BAD_ACCESS because of viewport command while turning the screen off/on.