diff --git a/Detour/Source/DetourNavMeshQuery.cpp b/Detour/Source/DetourNavMeshQuery.cpp index c1f57df..9db64d0 100644 --- a/Detour/Source/DetourNavMeshQuery.cpp +++ b/Detour/Source/DetourNavMeshQuery.cpp @@ -716,6 +716,8 @@ public: void process(const dtMeshTile* tile, dtPoly** polys, dtPolyRef* refs, int count) { + dtIgnoreUnused(polys); + for (int i = 0; i < count; ++i) { dtPolyRef ref = refs[i]; @@ -914,6 +916,9 @@ public: void process(const dtMeshTile* tile, dtPoly** polys, dtPolyRef* refs, int count) { + dtIgnoreUnused(tile); + dtIgnoreUnused(polys); + int numLeft = m_maxPolys - m_numCollected; int toCopy = count; if (toCopy > numLeft) diff --git a/RecastDemo/Source/imgui.cpp b/RecastDemo/Source/imgui.cpp index 17430a7..89fcc19 100644 --- a/RecastDemo/Source/imgui.cpp +++ b/RecastDemo/Source/imgui.cpp @@ -28,7 +28,7 @@ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -static const unsigned TEXT_POOL_SIZE = 8000; +static const unsigned TEXT_POOL_SIZE = 50000; static char g_textPool[TEXT_POOL_SIZE]; static unsigned g_textPoolSize = 0; static const char* allocText(const char* text)