added comments

This commit is contained in:
Anna 2019-06-18 19:33:31 -07:00
parent a1a3eccad9
commit 803fe1e178
2 changed files with 4 additions and 3 deletions
libraries/display-plugins/src/display-plugins

View file

@ -113,7 +113,6 @@ gpu::PipelinePointer Basic2DWindowOpenGLDisplayPlugin::getCompositeScenePipeline
#if defined(Q_OS_ANDROID)
return _linearToSRGBPipeline;
#endif
//return _drawTexturePipeline;
return _SRGBToLinearPipeline;
}

View file

@ -633,6 +633,7 @@ void OpenGLDisplayPlugin::compositePointer() {
});
}
// Overridden by Basic2DWindowDisplayPlugin and OculusDisplayPlugin
gpu::PipelinePointer OpenGLDisplayPlugin::getCompositeScenePipeline() {
return _drawTexturePipeline;
}
@ -917,8 +918,9 @@ void OpenGLDisplayPlugin::render(std::function<void(gpu::Batch& batch)> f) {
OpenGLDisplayPlugin::~OpenGLDisplayPlugin() {
}
// FIXME: added this to allow desktop composite framebuffer to be RGBA while mobile is SRGBA.
// This is a workaround
// Added this to allow desktop composite framebuffer to be RGBA while mobile is SRGBA
// Overridden by Basic2DWindowDisplayPlugin
// FIXME: Eventually it would be ideal to have both framebuffers be of the same type
gpu::Element OpenGLDisplayPlugin::getCompositeFBColorSpace() {
return gpu::Element::COLOR_RGBA_32;
}