diff --git a/src/nodes/QskPaintedNode.cpp b/src/nodes/QskPaintedNode.cpp index 6d09acbb..e153b2bb 100644 --- a/src/nodes/QskPaintedNode.cpp +++ b/src/nodes/QskPaintedNode.cpp @@ -18,15 +18,12 @@ QSK_QT_PRIVATE_BEGIN #include #include +#include QSK_QT_PRIVATE_END #if QT_VERSION >= QT_VERSION_CHECK( 6, 0, 0 ) - #include - -QSK_QT_PRIVATE_BEGIN -#include -QSK_QT_PRIVATE_END +#endif static GLuint qskTakeTexture( QOpenGLFramebufferObject& fbo ) { @@ -67,15 +64,6 @@ static GLuint qskTakeTexture( QOpenGLFramebufferObject& fbo ) return textureId; } -#else - -static GLuint qskTakeTexture( QOpenGLFramebufferObject& fbo ) -{ - return fbo.takeTexture(); -} - -#endif - namespace { const quint8 imageRole = 250; // reserved for internal use