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:
parent
49049d9047
commit
d3ac51573f
@ -43,7 +43,7 @@ QOpenGLShader shader(QOpenGLShader::Vertex);
|
|||||||
shader.compileSourceCode(code);
|
shader.compileSourceCode(code);
|
||||||
|
|
||||||
QOpenGLShaderProgram program(context);
|
QOpenGLShaderProgram program(context);
|
||||||
program.addShader(shader);
|
program.addShader(&shader);
|
||||||
program.link();
|
program.link();
|
||||||
|
|
||||||
program.bind();
|
program.bind();
|
||||||
|
Loading…
Reference in New Issue
Block a user