diff options
| author | Jørgen Lind <jorgen.lind@theqtcompany.com> | 2015-01-06 14:55:30 +0100 |
|---|---|---|
| committer | Jørgen Lind <jorgen.lind@theqtcompany.com> | 2015-01-10 19:40:31 +0100 |
| commit | cd7532ad7b8cf496bf138651ab38f07c3059df1d (patch) | |
| tree | 22917ffaf4f0f7086a2c22cadbf15f1abd5de227 /examples/opengl/qopenglwindow/main.cpp | |
| parent | c2b86ade9e1aca5b729676ec8f3fe8fc783690ba (diff) | |
Fix a couple of bugs in the QOpenGLWindow example
Also make the fragment shader a bit simpler
Change-Id: Ie50940da0a4f896504c9f5962cdb6c455983302f
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
Diffstat (limited to 'examples/opengl/qopenglwindow/main.cpp')
| -rw-r--r-- | examples/opengl/qopenglwindow/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/opengl/qopenglwindow/main.cpp b/examples/opengl/qopenglwindow/main.cpp index bf95d09ecdb..996feb5e96a 100644 --- a/examples/opengl/qopenglwindow/main.cpp +++ b/examples/opengl/qopenglwindow/main.cpp @@ -97,7 +97,7 @@ private: // typical in pure QWindow-based applications. OpenGLWindow::OpenGLWindow() : QOpenGLWindow(QOpenGLWindow::NoPartialUpdate) - , m_fragment_toy("background.frag") + , m_fragment_toy("./background.frag") , m_text_layout("The triangle and this text is rendered with QPainter") , m_animate(true) { |
