summaryrefslogtreecommitdiffstats
path: root/examples/gui/openglwindow/main.cpp
diff options
context:
space:
mode:
authorSamuel Gaist <samuel.gaist@edeltech.ch>2015-10-05 19:32:19 +0200
committerSamuel Gaist <samuel.gaist@edeltech.ch>2015-10-07 10:56:04 +0000
commitdecc54636821b7239815209165943211deaee5e9 (patch)
tree412a26d87c07c756bb63fe0557a1fcb5851d3751 /examples/gui/openglwindow/main.cpp
parenta5f470240f31d35e694a40fe837fc4f49bc32072 (diff)
Doc: remove unused code from OpenGL Window example
Change-Id: Ifb2c7206dee55102eba91b4c30543f3ac4838259 Reviewed-by: Topi Reiniƶ <topi.reinio@digia.com>
Diffstat (limited to 'examples/gui/openglwindow/main.cpp')
-rw-r--r--examples/gui/openglwindow/main.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/examples/gui/openglwindow/main.cpp b/examples/gui/openglwindow/main.cpp
index 6ab05176a6..d79ecd6510 100644
--- a/examples/gui/openglwindow/main.cpp
+++ b/examples/gui/openglwindow/main.cpp
@@ -57,8 +57,6 @@ public:
void render() Q_DECL_OVERRIDE;
private:
- GLuint loadShader(GLenum type, const char *source);
-
GLuint m_posAttr;
GLuint m_colAttr;
GLuint m_matrixUniform;
@@ -113,14 +111,6 @@ static const char *fragmentShaderSource =
//! [3]
//! [4]
-GLuint TriangleWindow::loadShader(GLenum type, const char *source)
-{
- GLuint shader = glCreateShader(type);
- glShaderSource(shader, 1, &source, 0);
- glCompileShader(shader);
- return shader;
-}
-
void TriangleWindow::initialize()
{
m_program = new QOpenGLShaderProgram(this);