Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorr.kuznetsov <r.kuznetsov@corp.mail.ru>2018-07-30 10:58:06 +0300
committerArsentiy Milchakov <milcars@mapswithme.com>2018-07-31 19:32:18 +0300
commit077fea7edb398a87132fea0dbb0dbc63e3e0e9a1 (patch)
treeb1f51fa01f79f5a6543ea14a70edf1878317e12c /drape_frontend
parentf8eb93223027b3799a758d65c0e8e3af3ab20567 (diff)
Fixed crash on texture manager usage before initialization
Diffstat (limited to 'drape_frontend')
-rwxr-xr-xdrape_frontend/frontend_renderer.cpp1
-rw-r--r--drape_frontend/message_subclasses.hpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/drape_frontend/frontend_renderer.cpp b/drape_frontend/frontend_renderer.cpp
index 35fd1bab58..84cbe0ede4 100755
--- a/drape_frontend/frontend_renderer.cpp
+++ b/drape_frontend/frontend_renderer.cpp
@@ -1423,6 +1423,7 @@ void FrontendRenderer::RenderTransitBackground()
dp::TextureManager::ColorRegion region;
m_texMng->GetColorRegion(df::GetColorConstant(kTransitBackgroundColor), region);
+ CHECK(region.GetTexture() != nullptr, ("Texture manager is not initialized"));
if (!m_transitBackground->IsInitialized())
{
auto prg = m_gpuProgramManager->GetProgram(gpu::Program::ScreenQuad);
diff --git a/drape_frontend/message_subclasses.hpp b/drape_frontend/message_subclasses.hpp
index ecd8eeb982..d021b29fb8 100644
--- a/drape_frontend/message_subclasses.hpp
+++ b/drape_frontend/message_subclasses.hpp
@@ -1251,6 +1251,7 @@ private:
class FinishTexturesInitializationMessage : public Message
{
public:
+ bool IsGLContextDependent() const override { return true; }
Type GetType() const override { return Message::FinishTexturesInitialization; }
};