mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Added release function to PoolVector::Access.
For clarity, assign-to-release idiom for PoolVector::Read/Write replaced with a function call. Existing uses replaced (or removed if already handled by scope)
This commit is contained in:
@@ -80,7 +80,7 @@ RES ResourceFormatPKM::load(const String &p_path, const String &p_original_path,
|
||||
src_data.resize(size);
|
||||
PoolVector<uint8_t>::Write wb = src_data.write();
|
||||
f->get_buffer(wb.ptr(), size);
|
||||
wb = PoolVector<uint8_t>::Write();
|
||||
wb.release();
|
||||
|
||||
int mipmaps = h.format;
|
||||
int width = h.origWidth;
|
||||
|
||||
Reference in New Issue
Block a user