diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-04-19 14:44:21 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-04-19 14:44:21 +0000 |
| commit | 3434707ff08b9b9716d59370ea8c115f962d2423 (patch) | |
| tree | e861ce38bf935bc5c435bd9fa6478bdb2a464be4 /Graphics/GraphicsEngine | |
| parent | Fixed unpack buffer offsets in GL back-end (diff) | |
| download | DiligentCore-3434707ff08b9b9716d59370ea8c115f962d2423.tar.gz DiligentCore-3434707ff08b9b9716d59370ea8c115f962d2423.zip | |
Fixed parameter issue in ALLOCATE macro
Diffstat (limited to 'Graphics/GraphicsEngine')
| -rw-r--r-- | Graphics/GraphicsEngine/include/EngineMemory.h | 2 |
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) } |
