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
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-05-03 20:07:22 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-05-03 20:08:27 +0300
commit3c07967ef28e5928049647daa0673f9db91d083f (patch)
treef47d7a111c9b6cadcb23830e77b3382b8135eadb /intern/cycles
parentd23869eefab23c229db9c0dae0db062f7cd205f7 (diff)
Fix Cycles crash when trying to load image that does not exist
It was crashing due to array out of bounds access. This is not a great fix, but brings back behavior the same as before now. Perhaps images that failed to load should be stored separately somewhere.
Diffstat (limited to 'intern/cycles')
-rw-r--r--intern/cycles/render/image.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/render/image.h b/intern/cycles/render/image.h
index d5bc37e58d7..c05a65f6c3e 100644
--- a/intern/cycles/render/image.h
+++ b/intern/cycles/render/image.h
@@ -57,7 +57,7 @@ class ImageMetaData {
height(0),
depth(0),
builtin_free_cache(NULL),
- type(IMAGE_DATA_NUM_TYPES),
+ type((ImageDataType)0),
colorspace(u_colorspace_raw),
compress_as_srgb(false)
{