code: public static void checkDepthOnlyRenderableTexture2D(
      final JCGLTextureFormat t)
      throws JCGLExceptionFormatError
    {
      if (!isDepthRenderable(t)) {
        final String m =
          String.format("Format %s is not depth-renderable", t);
        assert m != null;
        throw new JCGLExceptionFormatError(m);
      }
  
      if (isStencilRenderable(t)) {
        final String m = String.format(
          "Format %s is stencil-renderable: Must be used as a depth+stencil "
            + "attachment",
          t);
        assert m != null;
        throw new JCGLExceptionFormatError(m);
      }
    }
docs: Check that the texture is of a depth (not stencil) renderable format.
  
  @param t The texture format
  
  @throws JCGLExceptionFormatError If the texture is not of the correct
  format