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:
authorexmix <rahuba.youri@mapswithme.com>2014-07-13 00:00:58 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:20:23 +0300
commit9c1685dc4646f9a095fe0595e5832ae15a5db461 (patch)
treedc5d057570cf5ecf2584db1219b566c3715bf2b1 /drape/gpu_buffer.cpp
parent65a4668289ced4c79f46aee21877b77d61c517c3 (diff)
[drape] review fixes
Diffstat (limited to 'drape/gpu_buffer.cpp')
-rw-r--r--drape/gpu_buffer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/drape/gpu_buffer.cpp b/drape/gpu_buffer.cpp
index f7a235cfca..f54db000ab 100644
--- a/drape/gpu_buffer.cpp
+++ b/drape/gpu_buffer.cpp
@@ -8,7 +8,7 @@ namespace
{
bool IsMapBufferSupported()
{
- static bool isSupported = GLExtensionsList::Instance().IsSupported(GLExtensionsList::MapBuffer);
+ static bool const isSupported = GLExtensionsList::Instance().IsSupported(GLExtensionsList::MapBuffer);
return isSupported;
}
}
@@ -69,9 +69,9 @@ void * GPUBuffer::Map()
void GPUBuffer::UpdateData(void * gpuPtr, void const * data, uint16_t elementOffset, uint16_t elementCount)
{
- uint16_t elementSize = GetElementSize();
- uint32_t byteOffset = elementOffset * (uint32_t)elementSize;
- uint32_t byteCount = elementCount * (uint32_t)elementSize;
+ uint16_t const elementSize = GetElementSize();
+ uint32_t const byteOffset = elementOffset * (uint32_t)elementSize;
+ uint32_t const byteCount = elementCount * (uint32_t)elementSize;
ASSERT(m_isMapped == true, ());
if (IsMapBufferSupported())
{