mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +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:
@@ -153,7 +153,7 @@ RES ResourceFormatPVR::load(const String &p_path, const String &p_original_path,
|
||||
ERR_FAIL_V(RES());
|
||||
}
|
||||
|
||||
w = PoolVector<uint8_t>::Write();
|
||||
w.release();
|
||||
|
||||
int tex_flags = Texture::FLAG_FILTER | Texture::FLAG_REPEAT;
|
||||
|
||||
@@ -655,8 +655,8 @@ static void _pvrtc_decompress(Image *p_img) {
|
||||
|
||||
decompress_pvrtc((PVRTCBlock *)r.ptr(), _2bit, p_img->get_width(), p_img->get_height(), 0, (unsigned char *)w.ptr());
|
||||
|
||||
w = PoolVector<uint8_t>::Write();
|
||||
r = PoolVector<uint8_t>::Read();
|
||||
w.release();
|
||||
r.release();
|
||||
|
||||
bool make_mipmaps = p_img->has_mipmaps();
|
||||
p_img->create(p_img->get_width(), p_img->get_height(), false, Image::FORMAT_RGBA8, newdata);
|
||||
|
||||
Reference in New Issue
Block a user