diff --git a/src/nodes/QskBoxNode.cpp b/src/nodes/QskBoxNode.cpp index dea2695d..19a62767 100644 --- a/src/nodes/QskBoxNode.cpp +++ b/src/nodes/QskBoxNode.cpp @@ -116,8 +116,8 @@ void QskBoxNode::setBoxData( const QRectF& rect, } } - bool maybeFlat = false; +#if 0 /* Always using the same material result in a better batching but wastes some memory. when we have a solid color. @@ -125,6 +125,8 @@ void QskBoxNode::setBoxData( const QRectF& rect, but for the moment we go with performance. */ + bool maybeFlat = true; + if ( maybeFlat ) { if ( ( hasFill && hasBorder ) || @@ -134,6 +136,9 @@ void QskBoxNode::setBoxData( const QRectF& rect, maybeFlat = false; } } +#else + bool maybeFlat = false; +#endif QskBoxRenderer renderer;