docs: @Override
      protected void onDetachedFromWindow() {
          if (LOG_ATTACH_DETACH) {
              Log.d(TAG, "onDetachedFromWindow");
          }
          if (mGLThread != null) {
              mGLThread.requestExitAndWait();
          }
          mDetached = true;
          super.onDetachedFromWindow();
      }