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:
Diffstat (limited to 'drape/render_state.cpp')
-rw-r--r--drape/render_state.cpp6
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());