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:
authorDaria Volvenkova <d.volvenkova@corp.mail.ru>2019-02-14 19:12:50 +0300
committerDaria Volvenkova <d.volvenkova@corp.mail.ru>2019-03-01 10:45:24 +0300
commitdc89014973ebceef3250a800ce73aa8b9581e234 (patch)
treee307da089c3a55ab28368c4a9a6addb7262f5482 /drape/render_state.cpp
parent853e6e93548b5e2d169d2b636e78b974e79bdef1 (diff)
[vulkan] Crash fixes.
Diffstat (limited to 'drape/render_state.cpp')
-rw-r--r--drape/render_state.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/drape/render_state.cpp b/drape/render_state.cpp
index 18985d0114..7e134e6e67 100644
--- a/drape/render_state.cpp
+++ b/drape/render_state.cpp
@@ -229,6 +229,7 @@ void TextureState::ApplyTextures(ref_ptr<GraphicsContext> context, RenderState c
else if (apiVersion == dp::ApiVersion::Vulkan)
{
ref_ptr<dp::vulkan::VulkanBaseContext> vulkanContext = context;
+ vulkanContext->ClearParamDescriptors();
ref_ptr<dp::vulkan::VulkanGpuProgram> p = program;
auto const & bindings = p->GetTextureBindings();
for (auto const & texture : state.GetTextures())
@@ -311,7 +312,7 @@ void ApplyState(ref_ptr<GraphicsContext> context, ref_ptr<GpuProgram> program, R
{
ASSERT_GREATER_OR_EQUAL(state.GetLineWidth(), 0, ());
ref_ptr<dp::vulkan::VulkanBaseContext> vulkanContext = context;
- VkCommandBuffer commandBuffer = vulkanContext->GetCurrentCommandBuffer();
+ VkCommandBuffer commandBuffer = vulkanContext->GetCurrentRenderingCommandBuffer();
CHECK(commandBuffer != nullptr, ());
vkCmdSetLineWidth(commandBuffer, static_cast<float>(state.GetLineWidth()));
}