aboutsummaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorAdrian Jeakins <jeakinsadrian@gmail.com>2018-12-20 22:28:53 +0000
committerAdrian Jeakins <jeakinsadrian@gmail.com>2018-12-20 22:28:53 +0000
commit7f950a18524bf4cc6181c5c6e7210dad859b7983 (patch)
tree0c230d90c8177602362f4e42575a7f836ef09bab /gui
parent3cdd83a3bed88d869c8aa97f66e4c88d3cfa7aff (diff)
downloadnextpnr-7f950a18524bf4cc6181c5c6e7210dad859b7983.tar.gz
nextpnr-7f950a18524bf4cc6181c5c6e7210dad859b7983.tar.bz2
nextpnr-7f950a18524bf4cc6181c5c6e7210dad859b7983.zip
Reduce GL shader version for wider compatibility.
Diffstat (limited to 'gui')
-rw-r--r--gui/lineshader.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/lineshader.h b/gui/lineshader.h
index 74203261..4c54bf46 100644
--- a/gui/lineshader.h
+++ b/gui/lineshader.h
@@ -172,7 +172,7 @@ class LineShader
LineShader(QObject *parent) : parent_(parent), program_(nullptr) {}
static constexpr const char *vertexShaderSource_ =
- "#version 330\n"
+ "#version 150\n"
"in highp vec2 position;\n"
"in highp vec2 normal;\n"
"in highp float miter;\n"
@@ -183,7 +183,7 @@ class LineShader
" gl_Position = projection * vec4(p, 0.0, 1.0);\n"
"}\n";
- static constexpr const char *fragmentShaderSource_ = "#version 330\n"
+ static constexpr const char *fragmentShaderSource_ = "#version 150\n"
"uniform lowp vec4 color;\n"
"out vec4 Out_Color;\n"
"void main() {\n"