diff options
Diffstat (limited to 'intern/opencolorio/fallback_impl.cc')
-rw-r--r-- | intern/opencolorio/fallback_impl.cc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/intern/opencolorio/fallback_impl.cc b/intern/opencolorio/fallback_impl.cc index 91f009b3b57..dbf56136d8a 100644 --- a/intern/opencolorio/fallback_impl.cc +++ b/intern/opencolorio/fallback_impl.cc @@ -363,6 +363,25 @@ int FallbackImpl::colorSpaceIsData(OCIO_ConstColorSpaceRcPtr * /*cs*/) return 0; } +void FallbackImpl::colorSpaceIsBuiltin(OCIO_ConstConfigRcPtr * /*config*/, + OCIO_ConstColorSpaceRcPtr *cs, + bool &is_scene_linear, + bool &is_srgb) +{ + if (cs == COLORSPACE_LINEAR) { + is_scene_linear = true; + is_srgb = false; + } + else if (cs == COLORSPACE_SRGB) { + is_scene_linear = false; + is_srgb = true; + } + else { + is_scene_linear = false; + is_srgb = false; + } +} + void FallbackImpl::colorSpaceRelease(OCIO_ConstColorSpaceRcPtr * /*cs*/) { } |