Revision af27df87
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/library/DistortedFramebuffer.java | ||
---|---|---|
156 | 156 |
create(); |
157 | 157 |
} |
158 | 158 |
|
159 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
160 |
// create 'system' Framebuffers, i.e. those that are used internally by the library. |
|
161 |
// Those do not get removed in onDestroy(); |
|
162 |
|
|
163 |
public DistortedFramebuffer(boolean depthEnabled, int width, int height) |
|
164 |
{ |
|
165 |
super(width,height,NOT_CREATED_YET,true); |
|
166 |
mDepthEnabled= depthEnabled; |
|
167 |
mFBOH[0] = NOT_CREATED_YET; |
|
168 |
mDepthH[0] = NOT_CREATED_YET; |
|
169 |
} |
|
170 |
|
|
159 | 171 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
160 | 172 |
// PUBLIC API |
161 | 173 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
169 | 181 |
@SuppressWarnings("unused") |
170 | 182 |
public DistortedFramebuffer(int width, int height, boolean depthEnabled) |
171 | 183 |
{ |
172 |
super(width,height,NOT_CREATED_YET); |
|
184 |
super(width,height,NOT_CREATED_YET,false);
|
|
173 | 185 |
mDepthEnabled= depthEnabled; |
174 | 186 |
mFBOH[0] = NOT_CREATED_YET; |
175 | 187 |
mDepthH[0] = NOT_CREATED_YET; |
... | ... | |
186 | 198 |
@SuppressWarnings("unused") |
187 | 199 |
public DistortedFramebuffer(int width, int height) |
188 | 200 |
{ |
189 |
super(width,height,NOT_CREATED_YET); |
|
201 |
super(width,height,NOT_CREATED_YET,false);
|
|
190 | 202 |
mDepthEnabled= false; |
191 | 203 |
mFBOH[0] = NOT_CREATED_YET; |
192 | 204 |
mDepthH[0] = NOT_CREATED_YET; |
Also available in: Unified diff
A lot of different fixes.
A lot of issues still there:
1) if we only render part of the tree, tree isomorphism will sometimes not work correctly
2) when we change Effects that are inside Trees mid-render, even if we detach() the affected parts of the Tree first, for the last frame the new Effects will be used
3) Something is wrong wil the System FBOs after app restart (Blur & MultiBlur apps work erratically)