private void dispose(bool disposing) { if (_texture != 0) { _messagePump.Post(_ => _graphics.DeleteTexture(_texture), null); } }
private void dispose() { if (ID != 0) { _messagePump.Post(_ => _graphics.DeleteTexture(ID), null); } }
private void disposeTexture() { var texture = _texture; if (texture != 0) { _messagePump.Post(_ => _graphics.DeleteTexture(texture), null); } }