Project

General

Profile

« Previous | Next » 

Revision d5e053a5

Added by Leszek Koltunski almost 6 years ago

Remove the redundant DistortedNode.onPause()

View differences:

src/main/java/org/distorted/library/main/DistortedNode.java
90 90
      mFBO            = null;
91 91
      }
92 92
    }
93
 
94
///////////////////////////////////////////////////////////////////////////////////////////////////
95

  
96
  static synchronized void onPause()
97
    {
98
    NodeData data;
99

  
100
    for (HashMap.Entry<ArrayList<Long>,NodeData> entry : mMapNodeID.entrySet())
101
      {
102
      data = entry.getValue();
103

  
104
      if( data.mFBO != null )
105
        {
106
        data.mFBO.markForDeletion();
107
        data.mFBO = null;
108
        }
109
      }
110
    }
111 93

  
112 94
///////////////////////////////////////////////////////////////////////////////////////////////////
113 95

  
......
152 134
      // undefined anyway (although only when postprocessing is applied).
153 135
      //
154 136
      // See the consequences in the 'Olympic' app - remove a few leaves and add them back in
155
      // different order. You will see the number of renders go back to the original 14.
137
      // different order. You will see the number of renders go back to the original 15.
156 138
      Collections.sort(ret);
157 139
      }
158 140

  

Also available in: Unified diff