From f10aa2a91309a9fa50d04cbb2f549d19d17ed260 Mon Sep 17 00:00:00 2001 From: ExMix Date: Wed, 23 Oct 2013 17:18:54 +0300 Subject: [drape] tests for attribute provider --- drape/attribute_provider.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'drape/attribute_provider.cpp') diff --git a/drape/attribute_provider.cpp b/drape/attribute_provider.cpp index fbeb4827df..6c677ba7b6 100644 --- a/drape/attribute_provider.cpp +++ b/drape/attribute_provider.cpp @@ -4,7 +4,7 @@ #ifdef DEBUG #define INIT_CHECK_INFO(x) m_checkInfo = vector((vector::size_type)(x), false); #define CHECK_STREAMS CheckStreams() - #define INIT_STREAM(x) InitStream((x)) + #define INIT_STREAM(x) InitCheckStream((x)) #else #include "../../base/macros.hpp" #define INIT_CHECK_INFO(x) UNUSED_VALUE((x)) @@ -28,7 +28,6 @@ bool AttributeProvider::IsDataExists() const uint16_t AttributeProvider::GetVertexCount() const { - CHECK_STREAMS; return m_vertexCount; } @@ -85,7 +84,7 @@ void AttributeProvider::CheckStreams() const ("Not all streams initialized")); } -void AttributeProvider::InitStream(uint8_t streamIndex) +void AttributeProvider::InitCheckStream(uint8_t streamIndex) { m_checkInfo[streamIndex] = true; } -- cgit v1.2.3