Revision 0c303a2c
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/library/DistortedNode.java | ||
---|---|---|
89 | 89 |
} |
90 | 90 |
} |
91 | 91 |
|
92 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
93 |
|
|
94 |
static synchronized void onPause() |
|
95 |
{ |
|
96 |
NodeData data; |
|
97 |
|
|
98 |
for (HashMap.Entry<ArrayList<Long>,NodeData> entry : mMapNodeID.entrySet()) |
|
99 |
{ |
|
100 |
data = entry.getValue(); |
|
101 |
|
|
102 |
if( data.mFBO != null ) |
|
103 |
{ |
|
104 |
data.mFBO.markForDeletion(); |
|
105 |
data.mFBO = null; |
|
106 |
} |
|
107 |
} |
|
108 |
} |
|
109 |
|
|
92 | 110 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
93 | 111 |
|
94 | 112 |
static synchronized void onDestroy() |
... | ... | |
248 | 266 |
numRenders += mChildren.get(i).renderRecursive(currTime); |
249 | 267 |
} |
250 | 268 |
|
269 |
if( mData.mFBO==null ) |
|
270 |
{ |
|
271 |
mData.mFBO = new DistortedFramebuffer(true, DistortedSurface.TYPE_TREE, mSurface.getWidth(),mSurface.getHeight()); |
|
272 |
} |
|
273 |
|
|
251 | 274 |
mData.mFBO.setAsOutput(currTime); |
252 | 275 |
|
253 | 276 |
if( mSurface.setAsInput() ) |
Also available in: Unified diff
Release all TREE FBOs in Distorted.onPause().