Showing the changes to libraries/render-utils/src/GeometryCache.cpp (1 of 1 file). Show all
Unified · Split
| @@ -672,7 +672,7 @@ void GeometryCache::renderQuad(const glm::vec2& topLeft, const glm::vec2& bottom · 671 unmodified lines | |||
| 672 | int vertexPoints = vertices * FLOATS_PER_VERTEX; | 672 | int vertexPoints = vertices * FLOATS_PER_VERTEX; |
| 673 | GLfloat* vertexData = new GLfloat[vertexPoints]; // only vertices, no normals because we're a 2D quad | 673 | GLfloat* vertexData = new GLfloat[vertexPoints]; // only vertices, no normals because we're a 2D quad |
| 674 | GLfloat* vertex = vertexData; | 674 | GLfloat* vertex = vertexData; |
| 675 | static GLubyte cannonicalIndices[indices] = { 0, 1, 2, 3 }; | 675 | static GLubyte cannonicalIndices[indices] = {0, 1, 2, 3}; |
| 676 | 676 | ||
| 677 | vertex[0] = topLeft.x; | 677 | vertex[0] = topLeft.x; |
| 678 | vertex[1] = topLeft.y; | 678 | vertex[1] = topLeft.y; |