Fix FGQCanvas compilation with Qt 5.7
Use raw OpenGL type constants instead of the QSG aliases which were only added in 5.8
This commit is contained in:
parent
94a8ba8f9b
commit
089abcfe40
1 changed files with 2 additions and 2 deletions
|
@ -76,11 +76,11 @@ public:
|
|||
QTransform transform;
|
||||
QTriangleSet triangles = qTriangulate(m_path, transform);
|
||||
|
||||
int indexType = QSGGeometry::UnsignedShortType;
|
||||
int indexType = GL_UNSIGNED_SHORT;
|
||||
if (triangles.indices.type() == QVertexIndexVector::UnsignedShort) {
|
||||
// default is fine
|
||||
} else if (triangles.indices.type() == QVertexIndexVector::UnsignedInt) {
|
||||
indexType = QSGGeometry::UnsignedIntType;
|
||||
indexType = GL_UNSIGNED_INT;
|
||||
} else {
|
||||
qFatal("Unsupported triangle index type");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue