Initialize QOpenGLFunctions before using it in QOpenGLShaderProgram
Change-Id: I472e97092b05f1721b7df5759d674c213d6018c6 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>bb10
parent
36b3a6ad38
commit
c73ddb0c0e
|
|
@ -594,6 +594,7 @@ bool QOpenGLShaderProgram::init()
|
|||
QOpenGLContext *context = const_cast<QOpenGLContext *>(QOpenGLContext::currentContext());
|
||||
if (!context)
|
||||
return false;
|
||||
d->glfuncs->initializeGLFunctions();
|
||||
GLuint program = d->glfuncs->glCreateProgram();
|
||||
if (!program) {
|
||||
qWarning() << "QOpenGLShaderProgram: could not create shader program";
|
||||
|
|
|
|||
Loading…
Reference in New Issue