Showing the changes to libraries/render-utils/src/GeometryCache.cpp (1 of 2 files). Show all
Unified · Split
| @@ -815,9 +815,9 @@ void GeometryCache::renderSolidCube(gpu::Batch& batch, float size, const glm::ve · 814 unmodified lines | |||
| 815 | const int VERTEX_STRIDE = sizeof(GLfloat) * FLOATS_PER_VERTEX * 2; // vertices and normals | 815 | const int VERTEX_STRIDE = sizeof(GLfloat) * FLOATS_PER_VERTEX * 2; // vertices and normals |
| 816 | const int NORMALS_OFFSET = sizeof(GLfloat) * FLOATS_PER_VERTEX; | 816 | const int NORMALS_OFFSET = sizeof(GLfloat) * FLOATS_PER_VERTEX; |
| 817 | 817 | ||
| 818 | if (!_solidCubeVerticies.contains(size)) { | 818 | if (!_solidCubeVertices.contains(size)) { |
| 819 | gpu::BufferPointer verticesBuffer(new gpu::Buffer()); | 819 | gpu::BufferPointer verticesBuffer(new gpu::Buffer()); |
| 820 | _solidCubeVerticies[size] = verticesBuffer; | 820 | _solidCubeVertices[size] = verticesBuffer; |
| 821 | 821 | ||
| 822 | GLfloat* vertexData = new GLfloat[vertexPoints * 2]; // vertices and normals | 822 | GLfloat* vertexData = new GLfloat[vertexPoints * 2]; // vertices and normals |
| 823 | GLfloat* vertex = vertexData; | 823 | GLfloat* vertex = vertexData; |
| @@ -892,7 +892,7 @@ void GeometryCache::renderSolidCube(gpu::Batch& batch, float size, const glm::ve · 68 unmodified lines | |||
| 892 | 892 | ||
| 893 | colorBuffer->append(sizeof(colors), (gpu::Byte*) colors); | 893 | colorBuffer->append(sizeof(colors), (gpu::Byte*) colors); |
| 894 | } | 894 | } |
| 895 | gpu::BufferPointer verticesBuffer = _solidCubeVerticies[size]; | 895 | gpu::BufferPointer verticesBuffer = _solidCubeVertices[size]; |
| 896 | gpu::BufferPointer colorBuffer = _solidCubeColors[colorKey]; | 896 | gpu::BufferPointer colorBuffer = _solidCubeColors[colorKey]; |
| 897 | 897 | ||
| 898 | const int VERTICES_SLOT = 0; | 898 | const int VERTICES_SLOT = 0; |