From f1a6c0fceebf6a498ac113c8c2b6938956d39cf7 Mon Sep 17 00:00:00 2001 From: Martin Sekera Date: Tue, 27 Jan 2015 23:48:05 +0100 Subject: [PATCH] Fix: added missing default precision directives in fragment shaders --- app/qml/PreprocessedTerminal.qml | 1 + app/qml/ShaderTerminal.qml | 2 ++ app/qml/frames/utils/TerminalFrame.qml | 4 ++++ 3 files changed, 7 insertions(+) diff --git a/app/qml/PreprocessedTerminal.qml b/app/qml/PreprocessedTerminal.qml index 1e6d2a0..1ac6088 100644 --- a/app/qml/PreprocessedTerminal.qml +++ b/app/qml/PreprocessedTerminal.qml @@ -312,6 +312,7 @@ Item{ blending: false fragmentShader: + "precision highp float;" + "uniform lowp float qt_Opacity;" + "uniform lowp sampler2D txt_source;" + diff --git a/app/qml/ShaderTerminal.qml b/app/qml/ShaderTerminal.qml index 42d7356..a0c1903 100644 --- a/app/qml/ShaderTerminal.qml +++ b/app/qml/ShaderTerminal.qml @@ -151,6 +151,8 @@ ShaderEffect { }" fragmentShader: " + precision highp float; + uniform sampler2D source; uniform highp float qt_Opacity; uniform highp float time; diff --git a/app/qml/frames/utils/TerminalFrame.qml b/app/qml/frames/utils/TerminalFrame.qml index 093b2b5..ae4f084 100644 --- a/app/qml/frames/utils/TerminalFrame.qml +++ b/app/qml/frames/utils/TerminalFrame.qml @@ -120,6 +120,8 @@ Item{ blending: true fragmentShader: " + precision highp float; + uniform highp sampler2D normals; uniform highp sampler2D source; uniform lowp float screenCurvature; @@ -181,6 +183,8 @@ Item{ blending: true fragmentShader: " + precision highp float; + uniform sampler2D lightMask; uniform sampler2D reflectionSource; uniform lowp float diffuseComponent;