Fix BAD_EGL in logcat