Color Management: fix crash when displaying render preview if OCIO was disabled buildtime
[blender.git] / source / blender / imbuf / intern / colormanagement.c
index 6db45f0308ad3a643487f3464a9de9fbbc451cb3..d896395f6479551f1f690e3545f7b8ecc0380372 100644 (file)
@@ -565,6 +565,10 @@ void IMB_colormanagement_init(void)
                }
        }
 
+       if (config == NULL) {
+               config = OCIO_getDefaultConfig();
+       }
+
        if (config) {
                OCIO_setCurrentConfig(config);