diff -r 4cc6b582fde8 -r 1536f23cfab7 src/gl/compiler.cpp --- a/src/gl/compiler.cpp Wed Jan 22 22:43:28 2020 +0200 +++ b/src/gl/compiler.cpp Thu Jan 23 00:29:10 2020 +0200 @@ -97,8 +97,9 @@ object.vertexArray.bind(); object.program->enableAttributeArray(0); object.program->enableAttributeArray(1); - object.program->setAttributeBuffer(0, GL_FLOAT, 0, 3); - object.program->setAttributeBuffer(1, GL_FLOAT, 3, 4); + constexpr int stride = 7 * sizeof(GLfloat); + object.program->setAttributeBuffer(0, GL_FLOAT, 0 * sizeof(GLfloat), 3, stride); + object.program->setAttributeBuffer(1, GL_FLOAT, 3 * sizeof(GLfloat), 4, stride); object.vertexArray.release(); object.buffer.release(); object.program->release(); @@ -179,8 +180,6 @@ for (unsigned int i = 0; i < polygon.numPolygonVertices(); i += 1) { Point3D& point = polygon.vertices[i]; - polygon.vertices[i].y = -polygon.vertices[i].y; - polygon.vertices[i].z = -polygon.vertices[i].z; this->boundingBox.consider(polygon.vertices[i]); vertexBuffer.push_back(static_cast(point.x)); vertexBuffer.push_back(static_cast(point.y));