mirror of
https://github.com/overte-org/overte.git
synced 2025-04-23 02:13:28 +02:00
added comments
This commit is contained in:
parent
a1a3eccad9
commit
803fe1e178
2 changed files with 4 additions and 3 deletions
libraries/display-plugins/src/display-plugins
|
@ -113,7 +113,6 @@ gpu::PipelinePointer Basic2DWindowOpenGLDisplayPlugin::getCompositeScenePipeline
|
|||
#if defined(Q_OS_ANDROID)
|
||||
return _linearToSRGBPipeline;
|
||||
#endif
|
||||
//return _drawTexturePipeline;
|
||||
return _SRGBToLinearPipeline;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue