Add resize_initialized and resize_uninitialized to Vector. These functions serve as replacements for resize, to make sure the caller understands whether elements need to be initialized 'by hand' after the call.
This commit is contained in:
parent
6c9765d87e
commit
4cb8a0c77e
24 changed files with 62 additions and 44 deletions
|
|
@ -2339,7 +2339,7 @@ Vector<ShaderLanguage::Scalar> ShaderLanguage::_eval_vector_transform(const Vect
|
|||
|
||||
uint32_t ret_size = get_datatype_component_count(p_ret_type);
|
||||
Vector<Scalar> value;
|
||||
value.resize_zeroed(ret_size);
|
||||
value.resize_initialized(ret_size);
|
||||
|
||||
Scalar *w = value.ptrw();
|
||||
switch (p_ret_type) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue