1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

PoolVector is gone, replaced by Vector

Typed `PoolTypeArray` types are now renamed `PackedTypeArray` and are
sugar for `Vector<Type>`.
This commit is contained in:
Juan Linietsky
2020-02-17 18:06:54 -03:00
committed by Juan Linietsky
parent fb8c93c10b
commit 3205a92ad8
406 changed files with 5314 additions and 8271 deletions

View File

@@ -63,15 +63,15 @@ Error ImageLoaderHDR::load_image(Ref<Image> p_image, FileAccess *f, bool p_force
int width = f->get_line().to_int();
PoolVector<uint8_t> imgdata;
Vector<uint8_t> imgdata;
imgdata.resize(height * width * sizeof(uint32_t));
{
PoolVector<uint8_t>::Write w = imgdata.write();
uint8_t *w = imgdata.ptrw();
uint8_t *ptr = (uint8_t *)w.ptr();
uint8_t *ptr = (uint8_t *)w;
if (width < 8 || width >= 32768) {
// Read flat data