diff options
| author | Ibrahn Sahir <ibrahn.sahir@gmail.com> | 2019-07-05 18:08:43 +0100 |
|---|---|---|
| committer | Ibrahn Sahir <ibrahn.sahir@gmail.com> | 2019-07-06 12:04:27 +0100 |
| commit | 4e4697b1c481094949165fa9edbe6aeebcfcf3b4 (patch) | |
| tree | a05fa9e7249febb9093885ddc21da1cd967be314 /modules/etc | |
| parent | 0b6b49a897b35bec53765e1288c32d57afa1a293 (diff) | |
| download | redot-engine-4e4697b1c481094949165fa9edbe6aeebcfcf3b4.tar.gz | |
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)
Diffstat (limited to 'modules/etc')
| -rw-r--r-- | modules/etc/texture_loader_pkm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/etc/texture_loader_pkm.cpp b/modules/etc/texture_loader_pkm.cpp index f302834222..ff925480b8 100644 --- a/modules/etc/texture_loader_pkm.cpp +++ b/modules/etc/texture_loader_pkm.cpp @@ -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; |
