Core/StackArray: Moved StackArray class to its own header

This commit is contained in:
Jérôme Leclercq
2018-07-02 17:53:49 +02:00
parent bb0456ffed
commit 2fcea6b79f
11 changed files with 318 additions and 271 deletions

View File

@@ -8,8 +8,8 @@
#include <Nazara/Core/Error.hpp>
#include <Nazara/Core/ErrorFlags.hpp>
#include <Nazara/Core/Log.hpp>
#include <Nazara/Core/MemoryHelper.hpp>
#include <Nazara/Core/Signal.hpp>
#include <Nazara/Core/StackArray.hpp>
#include <Nazara/Renderer/Config.hpp>
#include <Nazara/Renderer/Context.hpp>
#include <Nazara/Renderer/DebugDrawer.hpp>
@@ -1762,7 +1762,7 @@ namespace Nz
glGetProgramiv(program, GL_ACTIVE_UNIFORM_MAX_LENGTH, &maxLength);
maxLength++;
StackArray<GLchar> nameBuffer = NazaraStackAllocation(GLchar, maxLength + 1);
StackArray<GLchar> nameBuffer = NazaraStackArray(GLchar, maxLength + 1);
for (GLint i = 0; i < count; i++)
{
GLint size;