Revision 7f44c582
Added by Leszek Koltunski about 8 years ago
src/main/java/org/distorted/library/DistortedFramebuffer.java | ||
---|---|---|
283 | 283 |
{ |
284 | 284 |
fbo.createFBO(); |
285 | 285 |
|
286 |
if( fbo.texIds[0]>=0 ) // we cannot (yet?) render from FBO created with the second constructor.
|
|
286 |
if( fbo.texIds[0]>=0 ) // fbo created with the first constructor
|
|
287 | 287 |
{ |
288 | 288 |
createFBO(); |
289 | 289 |
GLES20.glBindFramebuffer(GLES20.GL_FRAMEBUFFER, fboIds[0]); |
... | ... | |
292 | 292 |
DistortedFramebuffer.deleteAllMarked(); |
293 | 293 |
DistortedTexture.deleteAllMarked(); |
294 | 294 |
} |
295 |
else // the second constructor |
|
296 |
{ |
|
297 |
/* |
|
298 |
createFBO(); |
|
299 |
GLES20.glBindFramebuffer(GLES20.GL_FRAMEBUFFER, fboIds[0]); |
|
300 |
// ??? TODO |
|
301 |
effects.drawPriv(fbo.mWidth/2, fbo.mHeight/2, grid, this, time); |
|
302 |
DistortedFramebuffer.deleteAllMarked(); |
|
303 |
DistortedTexture.deleteAllMarked(); |
|
304 |
*/ |
|
305 |
} |
|
295 | 306 |
} |
296 | 307 |
|
297 | 308 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Minor