History

typo

Atlante45 committed 11 years ago

Commit c0725811 parent 526ec3d2 files · +4 −4Browse files

Showing the changes to libraries/render-utils/src/GeometryCache.cpp (1 of 2 files). Show all

Unified · Split

libraries/render-utils/src/GeometryCache.cpp+3−3
@@ -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 normals815 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 normals822 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;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t