mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +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:
@@ -388,8 +388,8 @@ void image_decompress_cvtt(Image *p_image) {
|
||||
h >>= 1;
|
||||
}
|
||||
|
||||
rb = PoolVector<uint8_t>::Read();
|
||||
wb = PoolVector<uint8_t>::Write();
|
||||
rb.release();
|
||||
wb.release();
|
||||
|
||||
p_image->create(p_image->get_width(), p_image->get_height(), p_image->has_mipmaps(), target_format, data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user