public static void disableDepthBuffer(PGraphics g){
switch (MT4jSettings.getInstance().getRendererMode()) {
case MT4jSettings.OPENGL_MODE:
// GL gl = ((PGraphicsOpenGL)pa.g).gl;
GL gl = ((PGraphicsOpenGL)g).gl;
gl.glPushAttrib(GL.GL_DEPTH_BUFFER_BIT);//FIXME TEST
gl.glDepthFunc(javax.media.opengl.GL.GL_ALWAYS); //turn off Z buffering
break;
case MT4jSettings.P3D_MODE:
// /*
// for(int i=0;i<((PGraphics3D)pa.g).zbuffer.length;i++){