openglcolorprocessor: renamed CreateOpenGL() to Create()

We hide ColorProcessor::Create() to create a derived class rather than the
base class and clear up confusion over the two functions existing.
This commit is contained in:
itsmattkc
2020-02-22 00:34:55 +11:00
parent acb107bd92
commit 65db108be2
4 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ void OpenGLProxy::FrameToValue(StreamPtr stream, FramePtr frame, NodeValueTable
OpenGLColorProcessorPtr color_processor = std::static_pointer_cast<OpenGLColorProcessor>(color_cache_.Get(colorspace_match));
if (!color_processor) {
color_processor = OpenGLColorProcessor::CreateOpenGL(video_stream->footage()->project()->color_manager()->GetConfig(),
color_processor = OpenGLColorProcessor::Create(video_stream->footage()->project()->color_manager()->GetConfig(),
video_stream->colorspace(),
OCIO::ROLE_SCENE_LINEAR);
color_cache_.Add(colorspace_match, color_processor);