Skip to content

Commit

Permalink
Quit shortcut Ctrl-Q, GLSL 150 -> 120 according coozoo/openhantek@01b…
Browse files Browse the repository at this point in the history
…42d3

Signed-off-by: Ho-Ro <[email protected]>
  • Loading branch information
Ho-Ro committed Feb 26, 2019
1 parent 1874a81 commit 97540df
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
10 changes: 5 additions & 5 deletions openhantek/src/glscope.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ void GlScope::initializeGL() {
)";

const char *vshaderDesktop = R"(
#version 150
in highp vec3 vertex;
#version 120 //150
attribute vec3 vertex; //in highp vec3 vertex;
uniform mat4 matrix;
void main()
{
Expand All @@ -212,10 +212,10 @@ void GlScope::initializeGL() {
}
)";
const char *fshaderDesktop = R"(
#version 150
#version 120 //150
uniform highp vec4 colour;
out vec4 flatColor;
void main() { flatColor = colour; }
//out vec4 flatColor;
void main() { gl_FragColor = colour; } //{ flatColor = colour; }
)";

qDebug() << "compile shaders";
Expand Down
3 changes: 3 additions & 0 deletions openhantek/src/mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@
<property name="text">
<string>Exit</string>
</property>
<property name="shortcut">
<string>Ctrl+Q</string>
</property>
</action>
<action name="actionDigital_phosphor">
<property name="checkable">
Expand Down

0 comments on commit 97540df

Please sign in to comment.