diff options
author | Roman Kuznetsov <r.kuznetsow@gmail.com> | 2019-02-20 00:03:27 +0300 |
---|---|---|
committer | Daria Volvenkova <d.volvenkova@corp.mail.ru> | 2019-03-01 10:45:24 +0300 |
commit | 8203055211962d6d383dd2738f08456be9266229 (patch) | |
tree | 29e47130b441ecdd06c41295b3096594d7d865df /drape/render_state.cpp | |
parent | c68749eccf8492671a5f9432fcb2c9af95c04111 (diff) |
[vulkan] Fixed surface changing
Diffstat (limited to 'drape/render_state.cpp')
-rw-r--r-- | drape/render_state.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drape/render_state.cpp b/drape/render_state.cpp index a945368bae..3e5174090d 100644 --- a/drape/render_state.cpp +++ b/drape/render_state.cpp @@ -238,6 +238,12 @@ void TextureState::ApplyTextures(ref_ptr<GraphicsContext> context, RenderState c CHECK(it != bindings.end(), ("Texture bindings inconsistency.")); ref_ptr<dp::vulkan::VulkanTexture> t = texture.second->GetHardwareTexture(); + if (t == nullptr) + { + texture.second->UpdateState(context); + t = texture.second->GetHardwareTexture(); + CHECK(t != nullptr, ()); + } t->Bind(context); t->SetFilter(state.GetTextureFilter()); |