Project

General

Profile

« Previous | Next » 

Revision 36b9ee93

Added by Leszek Koltunski about 3 years ago

Attempt to programmatically catch the 'cube is sometimes not drawn' bug and report it to my server.

View differences:

src/main/java/org/distorted/main/RubikPreRender.java
55 55
    void onActionFinished(long effectID);
56 56
    }
57 57

  
58
  private RubikSurfaceView mView;
58
  private final RubikSurfaceView mView;
59 59
  private boolean mFinishRotation, mRemoveRotation, mRemovePatternRotation, mAddRotation,
60 60
                  mSetQuat, mChangeObject, mSetupObject, mSolveObject, mScrambleObject,
61 61
                  mInitializeObject, mSetTextureMap, mResetAllTextureMaps;
......
64 64
  private ObjectList mNextObject;
65 65
  private int mNextSize;
66 66
  private long mRotationFinishedID;
67
  private long[] mEffectID;
67
  private final long[] mEffectID;
68 68
  private boolean mIsNewRecord;
69 69
  private long mNewRecord;
70 70
  private int mScreenWidth;
......
111 111
    mDebug = "";
112 112
    }
113 113

  
114
///////////////////////////////////////////////////////////////////////////////////////////////////
115

  
116
  void destroyNewObject()
117
    {
118
    if( mNewObject!=null )
119
      {
120
      mNewObject.releaseResources();
121
      mNewObject = null;
122
      }
123
    }
124

  
114 125
///////////////////////////////////////////////////////////////////////////////////////////////////
115 126

  
116 127
  private void createObjectNow(ObjectList object, int size, int[][] moves)

Also available in: Unified diff