Fix build with QT_NO_GRAPHICSEFFECT
Change-Id: Iadc78c270f541067dbbebcf77748077cc3a8be13 Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
This commit is contained in:
parent
4d6cb199b8
commit
8f899cd198
@ -40,6 +40,9 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include "qgraphicsshadereffect_p.h"
|
||||
|
||||
#ifndef QT_NO_GRAPHICSEFFECT
|
||||
|
||||
#include "qglshaderprogram.h"
|
||||
#include "gl2paintengineex/qglcustomshaderstage_p.h"
|
||||
#define QGL_HAVE_CUSTOM_SHADERS 1
|
||||
@ -311,3 +314,5 @@ void QGraphicsShaderEffect::setUniforms(QGLShaderProgram *program)
|
||||
}
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // QT_NO_GRAPHICSEFFECT
|
||||
|
@ -54,6 +54,9 @@
|
||||
//
|
||||
|
||||
#include <QtWidgets/qgraphicseffect.h>
|
||||
|
||||
#ifndef QT_NO_GRAPHICSEFFECT
|
||||
|
||||
#include <QtOpenGL/qtopenglglobal.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
@ -87,4 +90,6 @@ private:
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // QT_NO_GRAPHICSEFFECT
|
||||
|
||||
#endif // QGRAPHICSSHADEREFFECT_P_H
|
||||
|
Loading…
Reference in New Issue
Block a user