diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-09-16 19:17:22 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-09-16 19:17:22 +0400 |
commit | fc7de2353763c65db3c04c29dcc33289bb86966d (patch) | |
tree | 3651a4c2f3c32622ea0eaff3f60264ed6ac1bb73 /source/blender/imbuf | |
parent | eacf3054aa7479f98d87b8bdc757fd72d68d1610 (diff) |
Color Management: fix crash when displaying render preview if OCIO was disabled buildtime
Diffstat (limited to 'source/blender/imbuf')
-rw-r--r-- | source/blender/imbuf/intern/colormanagement.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/imbuf/intern/colormanagement.c b/source/blender/imbuf/intern/colormanagement.c index 6db45f0308a..d896395f647 100644 --- a/source/blender/imbuf/intern/colormanagement.c +++ b/source/blender/imbuf/intern/colormanagement.c @@ -565,6 +565,10 @@ void IMB_colormanagement_init(void) } } + if (config == NULL) { + config = OCIO_getDefaultConfig(); + } + if (config) { OCIO_setCurrentConfig(config); |