disable splash screen on android

This commit is contained in:
SamGondelman 2018-12-11 10:13:19 -08:00
parent bb9a764855
commit 17dcd8b87a
2 changed files with 6 additions and 0 deletions

View file

@ -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);
}

View file

@ -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;
};