mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 22:16:58 +02:00
disable splash screen on android
This commit is contained in:
parent
bb9a764855
commit
17dcd8b87a
2 changed files with 6 additions and 0 deletions
|
@ -56,9 +56,11 @@ void GraphicsEngine::initializeGPU(GLWidget* glwidget) {
|
||||||
glwidget->makeCurrent();
|
glwidget->makeCurrent();
|
||||||
_gpuContext = std::make_shared<gpu::Context>();
|
_gpuContext = std::make_shared<gpu::Context>();
|
||||||
|
|
||||||
|
#ifndef Q_OS_ANDROID
|
||||||
_gpuContext->pushProgramsToSync(shader::allPrograms(), [this] {
|
_gpuContext->pushProgramsToSync(shader::allPrograms(), [this] {
|
||||||
_programsCompiled.store(true);
|
_programsCompiled.store(true);
|
||||||
}, 1);
|
}, 1);
|
||||||
|
#endif
|
||||||
|
|
||||||
DependencyManager::get<TextureCache>()->setGPUContext(_gpuContext);
|
DependencyManager::get<TextureCache>()->setGPUContext(_gpuContext);
|
||||||
}
|
}
|
||||||
|
|
|
@ -86,7 +86,11 @@ protected:
|
||||||
FrameTimingsScriptingInterface _frameTimingsScriptingInterface;
|
FrameTimingsScriptingInterface _frameTimingsScriptingInterface;
|
||||||
|
|
||||||
std::shared_ptr<ProceduralSkybox> _splashScreen { std::make_shared<ProceduralSkybox>() };
|
std::shared_ptr<ProceduralSkybox> _splashScreen { std::make_shared<ProceduralSkybox>() };
|
||||||
|
#ifndef Q_OS_ANDROID
|
||||||
std::atomic<bool> _programsCompiled { false };
|
std::atomic<bool> _programsCompiled { false };
|
||||||
|
#else
|
||||||
|
std::atomic<bool> _programsCompiled { true };
|
||||||
|
#endif
|
||||||
|
|
||||||
friend class Application;
|
friend class Application;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue