Revision 653d09dc
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/examples/fbo/FBORenderer.java | ||
---|---|---|
75 | 75 |
if( depth ) mRoot.glEnable (GLES30.GL_DEPTH_TEST); |
76 | 76 |
else mRoot.glDisable(GLES30.GL_DEPTH_TEST); |
77 | 77 |
|
78 |
// TODO for some reason this does not work - investigate. |
|
79 |
//mRoot.glDepthMask(depth); |
|
78 |
mRoot.glDepthMask(depth); |
|
80 | 79 |
|
81 | 80 |
// we can also, to save memory, delete/recreate |
82 | 81 |
// the depth buffer each time. This is optional. |
Also available in: Unified diff
as clearing Depth has been fixed in 580f7d10, we can now use this API in the 'FBO' app.