From 1554315b3726fb6ad18b7224a0eca77892d6b5cb Mon Sep 17 00:00:00 2001 From: Elviss Strazdins Date: Wed, 1 Feb 2017 19:39:41 +0200 Subject: [PATCH] Fix Android build by using toString instead of std::to_string --- ouzel/graphics/opengl/ShaderOGL.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/ouzel/graphics/opengl/ShaderOGL.cpp b/ouzel/graphics/opengl/ShaderOGL.cpp index 1d607a146..4de85e31c 100644 --- a/ouzel/graphics/opengl/ShaderOGL.cpp +++ b/ouzel/graphics/opengl/ShaderOGL.cpp @@ -131,34 +131,34 @@ namespace ouzel switch (vertexAttribute.usage) { case VertexAttribute::Usage::BINORMAL: - name = "binormal" + std::to_string(vertexAttribute.index); + name = "binormal" + toString(vertexAttribute.index); break; case VertexAttribute::Usage::BLEND_INDICES: - name = "blendIndices" + std::to_string(vertexAttribute.index); + name = "blendIndices" + toString(vertexAttribute.index); break; case VertexAttribute::Usage::BLEND_WEIGHT: - name = "blendWeight" + std::to_string(vertexAttribute.index); + name = "blendWeight" + toString(vertexAttribute.index); break; case VertexAttribute::Usage::COLOR: - name = "color" + std::to_string(vertexAttribute.index); + name = "color" + toString(vertexAttribute.index); break; case VertexAttribute::Usage::NORMAL: - name = "normal" + std::to_string(vertexAttribute.index); + name = "normal" + toString(vertexAttribute.index); break; case VertexAttribute::Usage::POSITION: - name = "position" + std::to_string(vertexAttribute.index); + name = "position" + toString(vertexAttribute.index); break; case VertexAttribute::Usage::POSITION_TRANSFORMED: name = "positionT"; break; case VertexAttribute::Usage::POINT_SIZE: - name = "pointSize" + std::to_string(vertexAttribute.index); + name = "pointSize" + toString(vertexAttribute.index); break; case VertexAttribute::Usage::TANGENT: - name = "tangent" + std::to_string(vertexAttribute.index); + name = "tangent" + toString(vertexAttribute.index); break; case VertexAttribute::Usage::TEXTURE_COORDINATES: - name = "texCoord" + std::to_string(vertexAttribute.index); + name = "texCoord" + toString(vertexAttribute.index); break; default: Log() << "Invalid vertex attribute usage";