mirror of
https://git.suyu.dev/suyu/suyu
synced 2025-01-28 10:36:53 -06:00
prevent buffer view from crashing
This commit is contained in:
parent
1b690aab26
commit
08dbc9bd8d
@ -27,7 +27,7 @@ BufferView::BufferView(MTL::Buffer* buffer_, size_t offset_, size_t size_,
|
||||
: buffer{buffer_->retain()}, offset{offset_}, size{size_}, format{format_} {}
|
||||
|
||||
BufferView::~BufferView() {
|
||||
buffer->release();
|
||||
// buffer->release();
|
||||
}
|
||||
|
||||
Buffer::Buffer(BufferCacheRuntime& runtime, VideoCommon::NullBufferParams null_params)
|
||||
|
@ -22,7 +22,7 @@ struct BufferView {
|
||||
VideoCore::Surface::PixelFormat format_ = VideoCore::Surface::PixelFormat::Invalid);
|
||||
~BufferView();
|
||||
|
||||
MTL::Buffer* buffer = nil;
|
||||
MTL::Buffer* buffer = nullptr;
|
||||
size_t offset{};
|
||||
size_t size{};
|
||||
VideoCore::Surface::PixelFormat format{};
|
||||
|
Loading…
x
Reference in New Issue
Block a user