@Override
    protected void finalize() {
        for (int i = 0; i < id.length; i++) {
            glDeleteTextures(id[i]);
        }
        if (frameBuffer != 0) {
            glDeleteFramebuffers(frameBuffer);
        }
    }