mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-22 14:52:45 +01:00
metal: do not release not existing buffers
This commit is contained in:
parent
e87893ec42
commit
ef8b77c9a3
1 changed files with 3 additions and 1 deletions
|
@ -25,8 +25,10 @@ BoundBuffer::BoundBuffer(MTLBuffer_t buffer_, size_t offset_, size_t size_)
|
|||
: buffer{[buffer_ retain]}, offset{offset_}, size{size_} {}
|
||||
|
||||
BoundBuffer::~BoundBuffer() {
|
||||
if (buffer) {
|
||||
[buffer release];
|
||||
}
|
||||
}
|
||||
|
||||
BufferView::BufferView(MTLBuffer_t buffer_, size_t offset_, size_t size_,
|
||||
VideoCore::Surface::PixelFormat format_)
|
||||
|
|
Loading…
Reference in a new issue