Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2015-04-29 13:48:49 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-04-29 13:48:49 +0300
commitd6b28bbb1d61f059ec28156fb275393ee3389d57 (patch)
tree439212468f0503ebee464b04bcb7a61256db99c6 /intern
parent2e91bcfb9d5384bf14c5f405998aa8637b0fc918 (diff)
Cycles: Fix crashes when loading cache created with pre-leaf split builds
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/util/util_cache.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/util/util_cache.h b/intern/cycles/util/util_cache.h
index 9d001a6f1ff..343fa36817d 100644
--- a/intern/cycles/util/util_cache.h
+++ b/intern/cycles/util/util_cache.h
@@ -105,7 +105,7 @@ public:
return false;
}
- if(!size)
+ if((size == 0) || (size % sizeof(T)) != 0)
return false;
data.resize(size/sizeof(T));