summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFrederic L <frederic.laing.development@gmail.com>2019-02-03 05:21:18 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-02-07 02:23:41 +0100
commit9f0b247cf6776311d0826b0983369e9c248a6c55 (patch)
tree754752a2c9246ac444dc30a1b2cebe248cd85c4c /src
parentcmake: Use CMAKE_COMMAND instead of "cmake" (diff)
downloadyuzu-9f0b247cf6776311d0826b0983369e9c248a6c55.tar
yuzu-9f0b247cf6776311d0826b0983369e9c248a6c55.tar.gz
yuzu-9f0b247cf6776311d0826b0983369e9c248a6c55.tar.bz2
yuzu-9f0b247cf6776311d0826b0983369e9c248a6c55.tar.lz
yuzu-9f0b247cf6776311d0826b0983369e9c248a6c55.tar.xz
yuzu-9f0b247cf6776311d0826b0983369e9c248a6c55.tar.zst
yuzu-9f0b247cf6776311d0826b0983369e9c248a6c55.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_disk_cache.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_disk_cache.cpp b/src/video_core/renderer_opengl/gl_shader_disk_cache.cpp
index 554d0dfb9..67fcf3061 100644
--- a/src/video_core/renderer_opengl/gl_shader_disk_cache.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_disk_cache.cpp
@@ -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),
reinterpret_cast<char*>(compressed.data()),
source_size_int, max_compressed_size);
- if (compressed_size < 0) {
+ if (compressed_size <= 0) {
// Compression failed
return {};
}
@@ -649,4 +649,4 @@ std::string ShaderDiskCacheOpenGL::GetTitleID() const {
return fmt::format("{:016X}", system.CurrentProcess()->GetTitleID());
}
-} // namespace OpenGL \ No newline at end of file
+} // namespace OpenGL