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
path: root/drape
diff options
context:
space:
mode:
authorr.kuznetsov <r.kuznetsov@corp.mail.ru>2019-02-18 15:03:00 +0300
committerDaria Volvenkova <d.volvenkova@corp.mail.ru>2019-03-01 10:45:24 +0300
commitdf45a4b69403924f35d47d58310a634a42c4acd2 (patch)
tree544724ecba03d3db8143e65a620e914f527a484b /drape
parent2ea093139dda41aeebd168464ae51f036270583e (diff)
[vulkan] Small fixes
Diffstat (limited to 'drape')
-rw-r--r--drape/drape_diagnostics.hpp2
-rw-r--r--drape/index_buffer.cpp6
-rwxr-xr-xdrape/vulkan/vulkan_layers.cpp4
3 files changed, 6 insertions, 6 deletions
diff --git a/drape/drape_diagnostics.hpp b/drape/drape_diagnostics.hpp
index e36a3a4e3c..5587141cf3 100644
--- a/drape/drape_diagnostics.hpp
+++ b/drape/drape_diagnostics.hpp
@@ -26,5 +26,5 @@
#endif
-#define ENABLE_VULKAN_DIAGNOSTICS
+//#define ENABLE_VULKAN_DIAGNOSTICS
//#define ENABLE_VULKAN_DEBUG_DIAGNOSTICS_MESSAGES
diff --git a/drape/index_buffer.cpp b/drape/index_buffer.cpp
index f10dbed188..5e06bc2ccc 100644
--- a/drape/index_buffer.cpp
+++ b/drape/index_buffer.cpp
@@ -17,9 +17,9 @@ void IndexBuffer::UploadData(ref_ptr<GraphicsContext> context, void const * data
void IndexBuffer::UpdateData(ref_ptr<GraphicsContext> context, void const * data, uint32_t size)
{
ASSERT_LESS_OR_EQUAL(size, GetBuffer()->GetCapacity(), ());
- if (size == 0)
- return;
- UploadData(context, data, size);
+ GetBuffer()->Seek(0);
+ if (size > 0)
+ UploadData(context, data, size);
}
} // namespace dp
diff --git a/drape/vulkan/vulkan_layers.cpp b/drape/vulkan/vulkan_layers.cpp
index fa299c4975..556be4a1fa 100755
--- a/drape/vulkan/vulkan_layers.cpp
+++ b/drape/vulkan/vulkan_layers.cpp
@@ -256,7 +256,7 @@ Layers::Layers(bool enableDiagnostics)
kInstanceExtensions, ARRAY_SIZE(kInstanceExtensions));
for (auto ext : m_instanceExtensions)
- LOG(LDEBUG, ("Vulkan instance extension prepared", ext));
+ LOG(LINFO, ("Vulkan instance extension prepared", ext));
if (m_enableDiagnostics && !IsContained(kDebugReportExtension, m_instanceExtensions))
LOG(LWARNING, ("Vulkan diagnostics in not available on this device."));
@@ -374,7 +374,7 @@ bool Layers::Initialize(VkInstance instance, VkPhysicalDevice physicalDevice)
m_deviceExtensions = CheckExtensions(extensionsProperties, m_enableDiagnostics,
kDeviceExtensions, ARRAY_SIZE(kDeviceExtensions));
for (auto ext : m_deviceExtensions)
- LOG(LDEBUG, ("Vulkan device extension prepared", ext));
+ LOG(LINFO, ("Vulkan device extension prepared", ext));
if (m_enableDiagnostics && IsContained(kDebugReportExtension, m_instanceExtensions))
{