summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsTools
diff options
context:
space:
mode:
Diffstat (limited to 'Graphics/GraphicsTools')
-rw-r--r--Graphics/GraphicsTools/include/VariableSizeAllocationsManager.h4
-rw-r--r--Graphics/GraphicsTools/src/GraphicsUtilities.cpp1
2 files changed, 3 insertions, 2 deletions
diff --git a/Graphics/GraphicsTools/include/VariableSizeAllocationsManager.h b/Graphics/GraphicsTools/include/VariableSizeAllocationsManager.h
index 17381758..8285125b 100644
--- a/Graphics/GraphicsTools/include/VariableSizeAllocationsManager.h
+++ b/Graphics/GraphicsTools/include/VariableSizeAllocationsManager.h
@@ -68,7 +68,7 @@ namespace Diligent
std::map<OffsetType,
FreeBlockInfo,
std::less<OffsetType>, // Standard ordering
- STDAllocatorRawMem<std::pair<OffsetType, FreeBlockInfo>> // Raw memory allocator
+ STDAllocatorRawMem<std::pair<const OffsetType, FreeBlockInfo>> // Raw memory allocator
>;
// Type of the map that keeps memory blocks sorted by their sizes
@@ -76,7 +76,7 @@ namespace Diligent
std::multimap<OffsetType,
TFreeBlocksByOffsetMap::iterator,
std::less<OffsetType>, // Standard ordering
- STDAllocatorRawMem<std::pair<OffsetType, TFreeBlocksByOffsetMap::iterator>> // Raw memory allocator
+ STDAllocatorRawMem<std::pair<const OffsetType, TFreeBlocksByOffsetMap::iterator>> // Raw memory allocator
>;
struct FreeBlockInfo
diff --git a/Graphics/GraphicsTools/src/GraphicsUtilities.cpp b/Graphics/GraphicsTools/src/GraphicsUtilities.cpp
index 9b5beb4f..23089571 100644
--- a/Graphics/GraphicsTools/src/GraphicsUtilities.cpp
+++ b/Graphics/GraphicsTools/src/GraphicsUtilities.cpp
@@ -26,6 +26,7 @@
#include "DebugUtilities.h"
#include <algorithm>
#include <functional>
+#include <math.h>
#define PI_F 3.1415926f