diff options
| author | George Marques | 2017-07-13 14:41:10 -0300 |
|---|---|---|
| committer | George Marques | 2017-07-13 14:41:10 -0300 |
| commit | 0f765c86e5b7fc771f5559b9e46999bd8e6239aa (patch) | |
| tree | 63a7c4d2e2f20892f2fb7d37b491ec95b2a74201 /core/variant_call.cpp | |
| parent | fca9c75f2b002f3bdcec086499e2ea07b86cf4a1 (diff) | |
| download | godot-0f765c86e5b7fc771f5559b9e46999bd8e6239aa.tar.gz godot-0f765c86e5b7fc771f5559b9e46999bd8e6239aa.tar.zst godot-0f765c86e5b7fc771f5559b9e46999bd8e6239aa.zip | |
Add GZIP compression support
- Fix a wrong call in PoolByteArray::compress
Diffstat (limited to '')
| -rw-r--r-- | core/variant_call.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/variant_call.cpp b/core/variant_call.cpp index 6936a362e..4a806aec6 100644 --- a/core/variant_call.cpp +++ b/core/variant_call.cpp @@ -516,7 +516,7 @@ struct _VariantCall { PoolByteArray compressed; Compression::Mode mode = (Compression::Mode)(int)(*p_args[0]); - compressed.resize(Compression::get_max_compressed_buffer_size(ba->size())); + compressed.resize(Compression::get_max_compressed_buffer_size(ba->size(), mode)); int result = Compression::compress(compressed.write().ptr(), ba->read().ptr(), ba->size(), mode); result = result >= 0 ? result : 0; |
