public static void checkDepthRenderableTexture2D ( final JCGLTextureFormat t ) throws JCGLExceptionFormatError { if ( ! isDepthRenderable ( t ) ) { final String m = String . format ( "Format %s is not depth-renderable for 2D textures" , t ) ; assert m != null ; throw new JCGLExceptionFormatError ( m ) ; } }
Check that the texture format is a depth - renderable format .