diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2018-07-03 11:48:05 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2018-07-03 11:48:05 +0200 |
commit | d6df1b8ce9582a65c03de8f1de627e8140319ab0 (patch) | |
tree | f2c2fa41831ad77d51077861ddc9a7ec1d09d44f /gui | |
parent | 19e9866013f54f1ded262a93427f36bb263cd49d (diff) | |
download | nextpnr-d6df1b8ce9582a65c03de8f1de627e8140319ab0.tar.gz nextpnr-d6df1b8ce9582a65c03de8f1de627e8140319ab0.tar.bz2 nextpnr-d6df1b8ce9582a65c03de8f1de627e8140319ab0.zip |
Fixed OpenGL issues noticed on mingw intel/nvidia
Diffstat (limited to 'gui')
-rw-r--r-- | gui/fpgaviewwidget.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gui/fpgaviewwidget.h b/gui/fpgaviewwidget.h index 77735071..0cd84c9c 100644 --- a/gui/fpgaviewwidget.h +++ b/gui/fpgaviewwidget.h @@ -191,6 +191,7 @@ class LineShader } static constexpr const char *vertexShaderSource_ = + "#version 110\n" "attribute highp vec2 position;\n" "attribute highp vec2 normal;\n" "attribute highp float miter;\n" @@ -201,7 +202,8 @@ class LineShader " gl_Position = projection * vec4(p, 0.0, 1.0);\n" "}\n"; - static constexpr const char *fragmentShaderSource_ = "uniform lowp vec4 color;\n" + static constexpr const char *fragmentShaderSource_ = "#version 110\n" + "uniform lowp vec4 color;\n" "void main() {\n" " gl_FragColor = color;\n" "}\n"; |