You've already forked godot
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:
committed by
Juan Linietsky
parent
fb8c93c10b
commit
3205a92ad8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user