diff --git a/source/blender/compositor/realtime_compositor/cached_resources/intern/ocio_color_space_conversion_shader.cc b/source/blender/compositor/realtime_compositor/cached_resources/intern/ocio_color_space_conversion_shader.cc index 1623dc07d2c..ce04b435e80 100644 --- a/source/blender/compositor/realtime_compositor/cached_resources/intern/ocio_color_space_conversion_shader.cc +++ b/source/blender/compositor/realtime_compositor/cached_resources/intern/ocio_color_space_conversion_shader.cc @@ -480,9 +480,9 @@ OCIOColorSpaceConversionShader::OCIOColorSpaceConversionShader(Context &context, { /* Create a GPU shader creator and construct it based on the transforms in the default GPU * processor. */ +#if defined(WITH_OCIO) shader_creator_ = GPUShaderCreator::Create(context.get_precision()); -#if defined(WITH_OCIO) /* Get a GPU processor that transforms the source color space to the target color space. */ try { OCIO::ConstConfigRcPtr config = OCIO::GetCurrentConfig();