Use QGLFunctions to fix OpenGL calls
This commit is contained in:
parent
41d81ccd8f
commit
2cabf7bf93
6 changed files with 12 additions and 3 deletions
|
@ -2,6 +2,8 @@
|
|||
|
||||
Backdrop::Backdrop()
|
||||
{
|
||||
initializeGLFunctions();
|
||||
|
||||
shader.addShaderFromSourceFile(QGLShader::Vertex, ":/gl/quad.vert");
|
||||
shader.addShaderFromSourceFile(QGLShader::Fragment, ":/gl/quad.frag");
|
||||
shader.link();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue