public void onSurfaceChanged(GL10 gl, int w, int h) {
    if (!setup) {
      Log.i("OF", "initializing app");
      OFAndroid.init();
      OFAndroid.setup(w, h);
      initialized = true;
      setup = true;
      android.os.Process.setThreadPriority(8);
      OFGestureListener.swipe_Min_Distance = (int) (Math.max(w, h) * .1);
      OFGestureListener.swipe_Max_Distance = (int) (Math.max(w, h) * .6);

      /*if(ETC1Util.isETC1Supported()) Log.i("OF","ETC supported");
      else Log.i("OF","ETC not supported");*/
    }
    OFAndroid.resize(w, h);
    this.w = w;
    this.h = h;
  }