Project

General

Profile

« Previous | Next » 

Revision 8e34674e

Added by Leszek Koltunski over 7 years ago

Move the *List classes into static members of DistortedFramebuffer and DistortedObject.

View differences:

src/main/java/org/distorted/library/Distorted.java
115 115
    Log.d(TAG, "Max vectors in vertex shader: "+maxV);
116 116
    Log.d(TAG, "Max vectors in fragment shader: "+maxF);
117 117
    
118
    if( Build.FINGERPRINT.contains("generic") == false )
118
    if( !Build.FINGERPRINT.contains("generic") )
119 119
      {
120 120
      int realMaxV = (maxV-11)/4;   // adjust this in case of changes to the shaders...
121 121
      int realMaxF = (maxF- 2)/4;   //
......
347 347
    GLES20.glEnableVertexAttribArray(mNormalH);
348 348
    GLES20.glEnableVertexAttribArray(mTextureCoordH);
349 349
   
350
    DistortedObjectList.reset();
350
    DistortedObject.reset();
351 351
    DistortedNode.reset();
352 352
    EffectMessageSender.startSending();
353 353
    }
......
373 373
  public static void onDestroy()
374 374
    {
375 375
    DistortedGridFactory.release();
376
    DistortedObjectList.release();
377
    DistortedFramebufferList.release();
376
    DistortedObject.release();
377
    DistortedFramebuffer.release();
378 378
    DistortedNode.release();
379
    EffectQueue.reset();
379
    EffectQueue.release();
380 380
    EffectMessageSender.stopSending();
381 381
   
382 382
    mInitialized = false;

Also available in: Unified diff