mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
gl_shader_disk_cache: Consider compressed size zero as an error
Co-Authored-By: ReinUsesLisp <reinuseslisp@airmail.cc>
This commit is contained in:
parent
8ff2ce5207
commit
9f0b247cf6
1 changed files with 2 additions and 2 deletions
|
@ -59,7 +59,7 @@ std::vector<u8> CompressData(const T* source, std::size_t source_size) {
|
||||||
const int compressed_size = LZ4_compress_default(reinterpret_cast<const char*>(source),
|
const int compressed_size = LZ4_compress_default(reinterpret_cast<const char*>(source),
|
||||||
reinterpret_cast<char*>(compressed.data()),
|
reinterpret_cast<char*>(compressed.data()),
|
||||||
source_size_int, max_compressed_size);
|
source_size_int, max_compressed_size);
|
||||||
if (compressed_size < 0) {
|
if (compressed_size <= 0) {
|
||||||
// Compression failed
|
// Compression failed
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue