]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - jpeg.c
Don't continue loading image if we already have it cached. Fix mapshot caching
[xonotic/darkplaces.git] / jpeg.c
diff --git a/jpeg.c b/jpeg.c
index 939751fb4394f22a1ca222a819ec7cbb5b5e76c6..8eeb6d7b008fc41640ec3240c052abee0a8547af 100644 (file)
--- a/jpeg.c
+++ b/jpeg.c
@@ -1065,6 +1065,7 @@ qboolean Image_Compress(const char *imagename, size_t maxsize, void **buf, size_
        {
                *size = i->compressed_size;
                *buf = i->compressed;
+        return (*buf != NULL);
        }
 
        // load the image