diff options
Diffstat (limited to 'src/quick/scenegraph/coreapi/qsggeometry.h')
-rw-r--r-- | src/quick/scenegraph/coreapi/qsggeometry.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/quick/scenegraph/coreapi/qsggeometry.h b/src/quick/scenegraph/coreapi/qsggeometry.h index 8d0cd03968..1f54b7d81b 100644 --- a/src/quick/scenegraph/coreapi/qsggeometry.h +++ b/src/quick/scenegraph/coreapi/qsggeometry.h @@ -144,14 +144,9 @@ public: int indexType = TypeUnsignedShort); virtual ~QSGGeometry(); -#ifndef QT_NO_OPENGL - // ### Qt 6: GL types to be removed from the public API - void setDrawingMode(GLenum mode); - inline GLenum drawingMode() const { return m_drawing_mode; } -#else - void setDrawingMode(int mode); - inline int drawingMode() const { return m_drawing_mode; } -#endif + // must use unsigned int to be compatible with the old GLenum to keep BC + void setDrawingMode(unsigned int mode); + inline unsigned int drawingMode() const { return m_drawing_mode; } void allocate(int vertexCount, int indexCount = 0); |