doc: Fix error in QOpenGLShaderProgram example

The addShader() function takes a pointer.

Change-Id: Ibd6549ff06cb3bd86096e90ab2637845f032fc68
Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com>
This commit is contained in:
Eskil Abrahamsen Blomfeldt 2015-06-17 11:29:41 +02:00 committed by Eskil Abrahamsen Blomfeldt
parent 49049d9047
commit d3ac51573f

View File

@ -43,7 +43,7 @@ QOpenGLShader shader(QOpenGLShader::Vertex);
shader.compileSourceCode(code);
QOpenGLShaderProgram program(context);
program.addShader(shader);
program.addShader(&shader);
program.link();
program.bind();