mirror of
https://github.com/overte-org/overte.git
synced 2025-04-15 20:58:30 +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();
|
||||
_gpuContext = std::make_shared<gpu::Context>();
|
||||
|
||||
#ifndef Q_OS_ANDROID
|
||||
_gpuContext->pushProgramsToSync(shader::allPrograms(), [this] {
|
||||
_programsCompiled.store(true);
|
||||
}, 1);
|
||||
#endif
|
||||
|
||||
DependencyManager::get<TextureCache>()->setGPUContext(_gpuContext);
|
||||
}
|
||||
|
|
|
@ -86,7 +86,11 @@ protected:
|
|||
FrameTimingsScriptingInterface _frameTimingsScriptingInterface;
|
||||
|
||||
std::shared_ptr<ProceduralSkybox> _splashScreen { std::make_shared<ProceduralSkybox>() };
|
||||
#ifndef Q_OS_ANDROID
|
||||
std::atomic<bool> _programsCompiled { false };
|
||||
#else
|
||||
std::atomic<bool> _programsCompiled { true };
|
||||
#endif
|
||||
|
||||
friend class Application;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue