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>2015-04-23 15:28:55 +0300
committerr.kuznetsov <r.kuznetsov@corp.mail.ru>2015-11-30 16:04:17 +0300
commit875192615a361ec9d82f635bfffa1da566974818 (patch)
treed5b962ab8c060bf68b869be0e7ca444c5e61f731 /drape/attribute_provider.cpp
parentf5eb40a7889d8d9fbf8208c6d4aa1616bcc0fbf5 (diff)
Review fixes
Diffstat (limited to 'drape/attribute_provider.cpp')
-rw-r--r--drape/attribute_provider.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/drape/attribute_provider.cpp b/drape/attribute_provider.cpp
index 95144450e2..be6ec539ae 100644
--- a/drape/attribute_provider.cpp
+++ b/drape/attribute_provider.cpp
@@ -43,7 +43,7 @@ void const * AttributeProvider::GetRawPointer(uint8_t streamIndex)
{
ASSERT_LESS(streamIndex, GetStreamCount(), ());
CHECK_STREAMS;
- return m_streams[streamIndex].m_data;
+ return m_streams[streamIndex].m_data.get();
}
BindingInfo const & AttributeProvider::GetBindingInfo(uint8_t streamIndex) const
@@ -64,7 +64,7 @@ void AttributeProvider::Advance(uint16_t vertexCount)
{
BindingInfo const & info = m_streams[i].m_binding;
uint32_t offset = vertexCount * info.GetElementSize();
- void * rawPointer = m_streams[i].m_data;
+ void * rawPointer = m_streams[i].m_data.get();
m_streams[i].m_data = make_ref((void *)(((uint8_t *)rawPointer) + offset));
}
}