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
@ -222,7 +222,7 @@ RES ResourceFormatDDS::load(const String &p_path, const String &p_original_path,
|
||||
if (!(flags & DDSD_MIPMAPCOUNT))
|
||||
mipmaps = 1;
|
||||
|
||||
PoolVector<uint8_t> src_data;
|
||||
Vector<uint8_t> src_data;
|
||||
|
||||
const DDSFormatInfo &info = dds_format_info[dds_format];
|
||||
uint32_t w = width;
|
||||
@ -245,8 +245,8 @@ RES ResourceFormatDDS::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);
|
||||
uint8_t *wb = src_data.ptrw();
|
||||
f->get_buffer(wb, size);
|
||||
|
||||
} else if (info.palette) {
|
||||
|
||||
@ -278,8 +278,8 @@ RES ResourceFormatDDS::load(const String &p_path, const String &p_original_path,
|
||||
}
|
||||
|
||||
src_data.resize(size + 256 * colsize);
|
||||
PoolVector<uint8_t>::Write wb = src_data.write();
|
||||
f->get_buffer(wb.ptr(), size);
|
||||
uint8_t *wb = src_data.ptrw();
|
||||
f->get_buffer(wb, size);
|
||||
|
||||
for (int i = 0; i < 256; i++) {
|
||||
|
||||
@ -309,8 +309,8 @@ RES ResourceFormatDDS::load(const String &p_path, const String &p_original_path,
|
||||
size = size * 2;
|
||||
|
||||
src_data.resize(size);
|
||||
PoolVector<uint8_t>::Write wb = src_data.write();
|
||||
f->get_buffer(wb.ptr(), size);
|
||||
uint8_t *wb = src_data.ptrw();
|
||||
f->get_buffer(wb, size);
|
||||
|
||||
switch (dds_format) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user