diff --git a/sdrbase/gui/glshadersimple.cpp b/sdrbase/gui/glshadersimple.cpp index 82f2b0df7..a0f6a159d 100644 --- a/sdrbase/gui/glshadersimple.cpp +++ b/sdrbase/gui/glshadersimple.cpp @@ -103,8 +103,8 @@ void GLShaderSimple::cleanup() } const QString GLShaderSimple::m_vertexShaderSourceSimple = QString( - "uniform mat4 uMatrix;\n" - "attribute vec4 vertex;\n" + "uniform highp mat4 uMatrix;\n" + "attribute highp vec4 vertex;\n" "void main() {\n" " gl_Position = uMatrix * vertex;\n" "}\n" diff --git a/sdrbase/gui/glshadertextured.cpp b/sdrbase/gui/glshadertextured.cpp index e834f9cde..2b9eabbcf 100644 --- a/sdrbase/gui/glshadertextured.cpp +++ b/sdrbase/gui/glshadertextured.cpp @@ -125,10 +125,10 @@ void GLShaderTextured::cleanup() } const QString GLShaderTextured::m_vertexShaderSourceTextured = QString( - "uniform mat4 uMatrix;\n" - "attribute vec4 vertex;\n" - "attribute vec2 texCoord;\n" - "varying vec2 texCoordVar;\n" + "uniform highp mat4 uMatrix;\n" + "attribute highp vec4 vertex;\n" + "attribute highp vec2 texCoord;\n" + "varying mediump vec2 texCoordVar;\n" "void main() {\n" " gl_Position = uMatrix * vertex;\n" " texCoordVar = texCoord;\n" @@ -136,8 +136,8 @@ const QString GLShaderTextured::m_vertexShaderSourceTextured = QString( ); const QString GLShaderTextured::m_fragmentShaderSourceTextured = QString( - "uniform sampler2D uTexture;\n" - "varying vec2 texCoordVar;\n" + "uniform lowp sampler2D uTexture;\n" + "varying mediump vec2 texCoordVar;\n" "void main() {\n" " gl_FragColor = texture2D(uTexture, texCoordVar);\n" "}\n"