Revision eadf0859
Added by Leszek Koltunski almost 8 years ago
src/main/java/org/distorted/library/DistortedNode.java | ||
---|---|---|
174 | 174 |
if( deleteOldFBO && createNewFBO ) |
175 | 175 |
{ |
176 | 176 |
newData.mFBO = mData.mFBO; // just copy over |
177 |
android.util.Log.d("NODE", "copying over FBOs "+mData.mFBO.getID() ); |
|
177 |
//android.util.Log.d("NODE", "copying over FBOs "+mData.mFBO.getID() );
|
|
178 | 178 |
} |
179 | 179 |
else if( deleteOldFBO ) |
180 | 180 |
{ |
181 | 181 |
mData.mFBO.markForDeletion(); |
182 |
android.util.Log.d("NODE", "deleting old FBO "+mData.mFBO.getID() ); |
|
182 |
//android.util.Log.d("NODE", "deleting old FBO "+mData.mFBO.getID() );
|
|
183 | 183 |
mData.mFBO = null; |
184 | 184 |
} |
185 | 185 |
else if( createNewFBO ) |
186 | 186 |
{ |
187 | 187 |
newData.mFBO = new DistortedFramebuffer(true, DistortedSurface.TYPE_TREE, mSurface.getWidth(),mSurface.getHeight()); |
188 |
android.util.Log.d("NODE", "creating new FBO "+newData.mFBO.getID() ); |
|
188 |
//android.util.Log.d("NODE", "creating new FBO "+newData.mFBO.getID() );
|
|
189 | 189 |
} |
190 | 190 |
|
191 | 191 |
mData = newData; |
src/main/java/org/distorted/library/DistortedOutputSurface.java | ||
---|---|---|
115 | 115 |
|
116 | 116 |
// change tree topology (attach and detach children) |
117 | 117 |
boolean changed = DistortedAttachDaemon.toDo(); |
118 |
|
|
118 |
/* |
|
119 | 119 |
// debugging only |
120 | 120 |
if( changed ) |
121 | 121 |
{ |
... | ... | |
126 | 126 |
|
127 | 127 |
DistortedNode.debugMap(); |
128 | 128 |
} |
129 |
|
|
129 |
*/ |
|
130 | 130 |
// create and delete all underlying OpenGL resources |
131 | 131 |
// Watch out: FIRST change topology, only then deal |
132 | 132 |
// with OpenGL resources. That's because changing Tree |
133 | 133 |
// can result in additional Framebuffers that would need |
134 | 134 |
// to be created immediately, before the calls to drawRecursive() |
135 | 135 |
toDo(); |
136 |
|
|
136 |
/* |
|
137 | 137 |
// debugging only |
138 | 138 |
if( changed ) |
139 | 139 |
{ |
140 | 140 |
DistortedSurface.debugLists(); |
141 | 141 |
} |
142 |
|
|
142 |
*/ |
|
143 | 143 |
int numRenders = 0; |
144 | 144 |
|
145 | 145 |
for(int i=0; i<mNumChildren; i++) |
src/main/java/org/distorted/library/DistortedSurface.java | ||
---|---|---|
89 | 89 |
job = mToDoMap.get(key); |
90 | 90 |
surface = job.surface; |
91 | 91 |
|
92 |
android.util.Log.d("SURFACE", " ---> need to "+(job.action==JOB_CREATE ? "create":"delete")+" surfaceID="+surface.getID() ); |
|
92 |
//android.util.Log.d("SURFACE", " ---> need to "+(job.action==JOB_CREATE ? "create":"delete")+" surfaceID="+surface.getID() );
|
|
93 | 93 |
|
94 | 94 |
if( job.action==JOB_CREATE ) |
95 | 95 |
{ |
Also available in: Unified diff
Things seem to be working - switch off all debugs.