GPUDump: Fix unknown compression type reported with Zstandard

This commit is contained in:
Stenzek 2024-11-05 16:21:28 +10:00
parent 3952661978
commit 2044e35377
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ bool GPUDump::Recorder::Compress(const std::string& source_path, GPUDumpCompress
return false;
}
}
if (mode >= GPUDumpCompressionMode::XZLow && mode <= GPUDumpCompressionMode::XZHigh)
else if (mode >= GPUDumpCompressionMode::XZLow && mode <= GPUDumpCompressionMode::XZHigh)
{
const int clevel =
((mode == GPUDumpCompressionMode::XZLow) ? 3 : ((mode == GPUDumpCompressionMode::ZstHigh) ? 9 : 5));