public static void resetMask ( ) { GL . glDepthMask ( true ) ; GL . glClearDepth ( 0 ) ; GL . glClear ( SGL . GL_DEPTH_BUFFER_BIT ) ; GL . glDepthMask ( false ) ; GL . glDisable ( SGL . GL_DEPTH_TEST ) ; }
Reset the masked area - should be done after you ve finished rendering