@Override
    public void deleteImage(Image image) {
        int texId = image.getId();
        if (texId != -1) {
            intBuf1.put(0, texId);
            intBuf1.position(0).limit(1);
            gl.glDeleteTextures(intBuf1);
            image.resetObject();

            statistics.onDeleteTexture();
        }
    }
Copy a part of an image to a texture 2d.
@param dest The destination image, where the source will be copied
@param src The source image that contains the data to copy
@param destX First pixel of the destination image from where the src image will be drawn (x component)
@param destY First pixel of the destination image from where the src image will be drawn (y component)
@param srcX  First pixel to copy (x component)
@param srcY  First pixel to copy (y component)
@param areaW Width of the area to copy
@param areaH Height of the area to copy
jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java