Doc: remove unused code from OpenGL Window example

Change-Id: Ifb2c7206dee55102eba91b4c30543f3ac4838259
Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
This commit is contained in:
Samuel Gaist 2015-10-05 19:32:19 +02:00
parent a5f470240f
commit decc546368

View File

@ -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);