Revision 580f7d10
Added by Leszek Koltunski about 7 years ago
src/main/java/org/distorted/library/DistortedNode.java | ||
---|---|---|
236 | 236 |
|
237 | 237 |
mData.mFBO.setAsOutput(); |
238 | 238 |
|
239 |
DistortedRenderState.colorDepthOn(); |
|
240 |
|
|
239 | 241 |
GLES30.glClearColor(0.0f, 0.0f, 0.0f, 0.0f); |
240 | 242 |
GLES30.glClear( GLES30.GL_DEPTH_BUFFER_BIT | GLES30.GL_COLOR_BUFFER_BIT); |
241 | 243 |
|
244 |
android.util.Log.e("NODE", "clearing DEPTH buffer of FBO "); |
|
245 |
|
|
242 | 246 |
if( mSurface.setAsInput() ) |
243 | 247 |
{ |
244 | 248 |
numRenders++; |
Also available in: Unified diff
Bugfix: we need to have DepthMask and ColorMask both fully on when clearing the FBO in Nodes!