mirror of
https://github.com/tiennm99/godot.git
synced 2026-07-19 10:18:49 +00:00
Made Vector::ptrw explicit for writing, compiler was sometimes using the wrong function,
leading to unnecesary copy on writes and reduced performance.
This commit is contained in:
@@ -793,7 +793,7 @@ Error EditorExportPlatformIOS::export_project(const Ref<EditorExportPreset> &p_p
|
||||
|
||||
//read
|
||||
unzOpenCurrentFile(src_pkg_zip);
|
||||
unzReadCurrentFile(src_pkg_zip, data.ptr(), data.size());
|
||||
unzReadCurrentFile(src_pkg_zip, data.ptrw(), data.size());
|
||||
unzCloseCurrentFile(src_pkg_zip);
|
||||
|
||||
//write
|
||||
|
||||
Reference in New Issue
Block a user