From 45aa0a219a9fb15aad25ac5f1d4ba15752eddffb Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Mon, 28 Nov 2011 11:20:02 +0100 Subject: Add comment to the obscure initialization of QOpenGLFunctions. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I9386c0e3b158a675e2dcbce34eecb57edf0ac27b Reviewed-by: Samuel Rødal --- src/gui/opengl/qopenglfunctions.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gui/opengl') 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; -- cgit v1.2.3