summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsTools
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2017-11-17 03:38:10 +0000
committerEgor Yusov <egor.yusov@gmail.com>2017-11-17 03:38:10 +0000
commit68db615cd5f5ef731ca7018b251b43106c5a9f47 (patch)
treecd135e3fde86ff21a0329cbb9ea84fc5394e4ca2 /Graphics/GraphicsTools
parentUpdate readme.md (diff)
downloadDiligentCore-68db615cd5f5ef731ca7018b251b43106c5a9f47.tar.gz
DiligentCore-68db615cd5f5ef731ca7018b251b43106c5a9f47.zip
Fixed Android build issues
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