Skip to content

Commit 2c072ae

Browse files
Andy Shawossilator
authored andcommitted
Compile when -no-rtti is specified as a configure option
After discussing with Marko who did the original backport of the ShaderEffect to Qt 4.7 it was agreed that this is the correct thing to do in this case. Merge-request: 2713 Task-number: QTBUG-22419 Reviewed-by: Marko Niemelä
1 parent 34af6fd commit 2c072ae

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/imports/shaders/shadereffect.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ ShaderEffect::~ShaderEffect()
6161

6262
void ShaderEffect::prepareBufferedDraw(QPainter *painter)
6363
{
64+
#ifndef QT_NO_DYNAMIC_CAST
6465
// This workaround needed because QGraphicsEffect seems to always utilize default painters worldtransform
6566
// instead of the active painters worldtransform.
6667
const ShaderEffectBuffer *effectBuffer = dynamic_cast<ShaderEffectBuffer*> (painter->device());
@@ -70,6 +71,9 @@ void ShaderEffect::prepareBufferedDraw(QPainter *painter)
7071
} else {
7172
savedWorldTransform = painter->worldTransform();
7273
}
74+
#else
75+
Q_UNUSED(painter);
76+
#endif
7377
}
7478

7579
void ShaderEffect::draw (QPainter *painter)

0 commit comments

Comments
 (0)