mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 17:00:13 +02:00
typo
This commit is contained in:
parent
526ec3d489
commit
c0725813b6
2 changed files with 4 additions and 4 deletions
|
@ -815,9 +815,9 @@ void GeometryCache::renderSolidCube(gpu::Batch& batch, float size, const glm::ve
|
||||||
const int VERTEX_STRIDE = sizeof(GLfloat) * FLOATS_PER_VERTEX * 2; // vertices and normals
|
const int VERTEX_STRIDE = sizeof(GLfloat) * FLOATS_PER_VERTEX * 2; // vertices and normals
|
||||||
const int NORMALS_OFFSET = sizeof(GLfloat) * FLOATS_PER_VERTEX;
|
const int NORMALS_OFFSET = sizeof(GLfloat) * FLOATS_PER_VERTEX;
|
||||||
|
|
||||||
if (!_solidCubeVerticies.contains(size)) {
|
if (!_solidCubeVertices.contains(size)) {
|
||||||
gpu::BufferPointer verticesBuffer(new gpu::Buffer());
|
gpu::BufferPointer verticesBuffer(new gpu::Buffer());
|
||||||
_solidCubeVerticies[size] = verticesBuffer;
|
_solidCubeVertices[size] = verticesBuffer;
|
||||||
|
|
||||||
GLfloat* vertexData = new GLfloat[vertexPoints * 2]; // vertices and normals
|
GLfloat* vertexData = new GLfloat[vertexPoints * 2]; // vertices and normals
|
||||||
GLfloat* vertex = vertexData;
|
GLfloat* vertex = vertexData;
|
||||||
|
@ -892,7 +892,7 @@ void GeometryCache::renderSolidCube(gpu::Batch& batch, float size, const glm::ve
|
||||||
|
|
||||||
colorBuffer->append(sizeof(colors), (gpu::Byte*) colors);
|
colorBuffer->append(sizeof(colors), (gpu::Byte*) colors);
|
||||||
}
|
}
|
||||||
gpu::BufferPointer verticesBuffer = _solidCubeVerticies[size];
|
gpu::BufferPointer verticesBuffer = _solidCubeVertices[size];
|
||||||
gpu::BufferPointer colorBuffer = _solidCubeColors[colorKey];
|
gpu::BufferPointer colorBuffer = _solidCubeColors[colorKey];
|
||||||
|
|
||||||
const int VERTICES_SLOT = 0;
|
const int VERTICES_SLOT = 0;
|
||||||
|
|
|
@ -270,7 +270,7 @@ private:
|
||||||
QHash<Vec2Pair, gpu::BufferPointer> _cubeColors;
|
QHash<Vec2Pair, gpu::BufferPointer> _cubeColors;
|
||||||
gpu::BufferPointer _wireCubeIndexBuffer;
|
gpu::BufferPointer _wireCubeIndexBuffer;
|
||||||
|
|
||||||
QHash<float, gpu::BufferPointer> _solidCubeVerticies;
|
QHash<float, gpu::BufferPointer> _solidCubeVertices;
|
||||||
QHash<Vec2Pair, gpu::BufferPointer> _solidCubeColors;
|
QHash<Vec2Pair, gpu::BufferPointer> _solidCubeColors;
|
||||||
gpu::BufferPointer _solidCubeIndexBuffer;
|
gpu::BufferPointer _solidCubeIndexBuffer;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue