diff options
-rw-r--r-- | src/gui/opengl/qopenglfunctions.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/opengl/qopenglfunctions.cpp b/src/gui/opengl/qopenglfunctions.cpp index 4024a3896d..24cf858a7c 100644 --- a/src/gui/opengl/qopenglfunctions.cpp +++ b/src/gui/opengl/qopenglfunctions.cpp @@ -2340,6 +2340,10 @@ static void QOPENGLF_APIENTRY qopenglfResolveGetBufferSubData(GLenum target, qop QOpenGLFunctionsPrivate::QOpenGLFunctionsPrivate(QOpenGLContext *) { + /* Assign a pointer to an above defined static function + * which on first call resolves the function from the current + * context, assigns it to the member variable and executes it + * (see Resolver template) */ #ifndef QT_OPENGL_ES_2 ActiveTexture = qopenglfResolveActiveTexture; AttachShader = qopenglfResolveAttachShader; |