QOpenGLVertexArrayObject: remove a now unnecessary initialize call
Change-Id: I03a14c52dd5a02de0c1cc1c2df5d4529acff9acd Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
This commit is contained in:
parent
4d19c3a354
commit
b4bcc50c32
@ -168,12 +168,10 @@ bool QOpenGLVertexArrayObjectPrivate::create()
|
||||
if (format.version() >= qMakePair<int, int>(3,2)) {
|
||||
vaoFuncs.core_3_2 = ctx->versionFunctions<QOpenGLFunctions_3_2_Core>();
|
||||
vaoFuncsType = Core_3_2;
|
||||
vaoFuncs.core_3_2->initializeOpenGLFunctions();
|
||||
vaoFuncs.core_3_2->glGenVertexArrays(1, &vao);
|
||||
} else if (format.majorVersion() >= 3) {
|
||||
vaoFuncs.core_3_0 = ctx->versionFunctions<QOpenGLFunctions_3_0>();
|
||||
vaoFuncsType = Core_3_0;
|
||||
vaoFuncs.core_3_0->initializeOpenGLFunctions();
|
||||
vaoFuncs.core_3_0->glGenVertexArrays(1, &vao);
|
||||
} else
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user