def METHOD_NAME(self):
    """Delete associated OpenGL resources including texture"""
    if self._name is not None:
        gl.glDeleteFramebuffers(self._name)
        self._name = None
        if self._stencilId is not None:
            gl.glDeleteRenderbuffers(self._stencilId)
            if self._stencilId == self._depthId:
                self._depthId = None
            self._stencilId = None
        if self._depthId is not None:
            gl.glDeleteRenderbuffers(self._depthId)
            self._depthId = None
        self._texture.METHOD_NAME()  # Also discard the texture
    else:
        _logger.warning("Discard has already been called")