diff --git a/src/libs/tracing/timelineitemsrenderpass.cpp b/src/libs/tracing/timelineitemsrenderpass.cpp index 8b0698c54c3..efdf23e0800 100644 --- a/src/libs/tracing/timelineitemsrenderpass.cpp +++ b/src/libs/tracing/timelineitemsrenderpass.cpp @@ -542,9 +542,11 @@ void TimelineItemsMaterialShader::initialize() TimelineItemsMaterial::TimelineItemsMaterial() : m_selectedItem(-1) { setFlag(QSGMaterial::Blending, false); -#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) +#if QT_VERSION >= QT_VERSION_CHECK(6, 3, 0) + setFlag(QSGMaterial::NoBatching, true); +#elif QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) setFlag(QSGMaterial::CustomCompileStep, true); -#endif // >= Qt 6 +#endif // >= Qt 6.3/6.0 } QVector2D TimelineItemsMaterial::scale() const diff --git a/src/libs/tracing/timelinenotesrenderpass.cpp b/src/libs/tracing/timelinenotesrenderpass.cpp index 7eaefe9875d..bdedb595fc4 100644 --- a/src/libs/tracing/timelinenotesrenderpass.cpp +++ b/src/libs/tracing/timelinenotesrenderpass.cpp @@ -178,9 +178,11 @@ TimelineNotesRenderPassState::TimelineNotesRenderPassState(int numExpandedRows) m_nullGeometry(NotesGeometry::point2DWithDistanceFromTop(), 0) { m_material.setFlag(QSGMaterial::Blending, true); -#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) +#if QT_VERSION >= QT_VERSION_CHECK(6, 3, 0) + m_material.setFlag(QSGMaterial::NoBatching, true); +#elif QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) m_material.setFlag(QSGMaterial::CustomCompileStep, true); -#endif // >= Qt 6 +#endif // >= Qt 6.3/6.0 m_expandedRows.reserve(numExpandedRows); for (int i = 0; i < numExpandedRows; ++i) m_expandedRows << createNode(); diff --git a/src/plugins/qmlprofiler/qmlprofilerbindingloopsrenderpass.cpp b/src/plugins/qmlprofiler/qmlprofilerbindingloopsrenderpass.cpp index edcc9d6361e..b713acbf47e 100644 --- a/src/plugins/qmlprofiler/qmlprofilerbindingloopsrenderpass.cpp +++ b/src/plugins/qmlprofiler/qmlprofilerbindingloopsrenderpass.cpp @@ -383,9 +383,11 @@ void BindingLoopMaterialShader::initialize() BindingLoopMaterial::BindingLoopMaterial() { setFlag(QSGMaterial::Blending, false); -#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) +#if QT_VERSION >= QT_VERSION_CHECK(6, 3, 0) + setFlag(QSGMaterial::NoBatching, true); +#elif QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) setFlag(QSGMaterial::CustomCompileStep, true); -#endif // >= Qt 6 +#endif // >= Qt 6.3/6.0 } QSGMaterialType *BindingLoopMaterial::type() const