aboutsummaryrefslogtreecommitdiffstats
path: root/src/effects/DirectionalBlur.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/effects/DirectionalBlur.qml')
-rw-r--r--src/effects/DirectionalBlur.qml7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/effects/DirectionalBlur.qml b/src/effects/DirectionalBlur.qml
index a1b8f06..6965a52 100644
--- a/src/effects/DirectionalBlur.qml
+++ b/src/effects/DirectionalBlur.qml
@@ -37,7 +37,7 @@
**
****************************************************************************/
-import QtQuick 2.0
+import QtQuick 2.8
import QtGraphicalEffects.private 1.0
/*!
@@ -263,7 +263,10 @@ Item {
"
function buildFragmentShader() {
- var shader = fragmentShaderSkeleton
+ var shader = ""
+ if (GraphicsInfo.profile === GraphicsInfo.OpenGLCoreProfile)
+ shader += "#version 150 core\n#define varying in\n#define texture2D texture\nout vec4 fragColor;\n#define gl_FragColor fragColor\n"
+ shader += fragmentShaderSkeleton
var expandSteps = ""
if (transparentBorder) {