summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngine
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2019-04-19 14:44:21 +0000
committerEgor Yusov <egor.yusov@gmail.com>2019-04-19 14:44:21 +0000
commit3434707ff08b9b9716d59370ea8c115f962d2423 (patch)
treee861ce38bf935bc5c435bd9fa6478bdb2a464be4 /Graphics/GraphicsEngine
parentFixed unpack buffer offsets in GL back-end (diff)
downloadDiligentCore-3434707ff08b9b9716d59370ea8c115f962d2423.tar.gz
DiligentCore-3434707ff08b9b9716d59370ea8c115f962d2423.zip
Fixed parameter issue in ALLOCATE macro
Diffstat (limited to 'Graphics/GraphicsEngine')
-rw-r--r--Graphics/GraphicsEngine/include/EngineMemory.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Graphics/GraphicsEngine/include/EngineMemory.h b/Graphics/GraphicsEngine/include/EngineMemory.h
index ba80de4b..2a47711c 100644
--- a/Graphics/GraphicsEngine/include/EngineMemory.h
+++ b/Graphics/GraphicsEngine/include/EngineMemory.h
@@ -40,7 +40,7 @@ namespace Diligent
IMemoryAllocator& GetStringAllocator();
#define ALLOCATE_RAW(Allocator, Desc, Size) (Allocator).Allocate(Size, Desc, __FILE__, __LINE__)
-#define ALLOCATE(Allocator, Desc, Type, Count) reinterpret_cast<Type*>(ALLOCATE_RAW(Allocator, Desc, sizeof(Type) * Count))
+#define ALLOCATE(Allocator, Desc, Type, Count) reinterpret_cast<Type*>(ALLOCATE_RAW(Allocator, Desc, sizeof(Type) * (Count)))
#define FREE(Allocator, Ptr) Allocator.Free(Ptr)
}