mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-05-28 10:33:12 +02:00
fixed potential unreachable code warnings
This commit is contained in:
parent
523f73ab87
commit
c215831df8
1 changed files with 4 additions and 2 deletions
|
@ -112,15 +112,17 @@ bool Basic2DWindowOpenGLDisplayPlugin::internalActivate() {
|
||||||
gpu::PipelinePointer Basic2DWindowOpenGLDisplayPlugin::getCompositeScenePipeline() {
|
gpu::PipelinePointer Basic2DWindowOpenGLDisplayPlugin::getCompositeScenePipeline() {
|
||||||
#if defined(Q_OS_ANDROID)
|
#if defined(Q_OS_ANDROID)
|
||||||
return _linearToSRGBPipeline;
|
return _linearToSRGBPipeline;
|
||||||
#endif
|
#else
|
||||||
return _SRGBToLinearPipeline;
|
return _SRGBToLinearPipeline;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
gpu::Element Basic2DWindowOpenGLDisplayPlugin::getCompositeFBColorSpace() {
|
gpu::Element Basic2DWindowOpenGLDisplayPlugin::getCompositeFBColorSpace() {
|
||||||
#if defined(Q_OS_ANDROID)
|
#if defined(Q_OS_ANDROID)
|
||||||
return gpu::Element::COLOR_SRGBA_32;
|
return gpu::Element::COLOR_SRGBA_32;
|
||||||
#endif
|
#else
|
||||||
return gpu::Element::COLOR_RGBA_32;
|
return gpu::Element::COLOR_RGBA_32;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue