summaryrefslogtreecommitdiffstats
path: root/src/gui/opengl/qopenglfunctions.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2011-11-28 11:20:02 +0100
committerQt by Nokia <qt-info@nokia.com>2011-11-28 15:08:01 +0100
commit45aa0a219a9fb15aad25ac5f1d4ba15752eddffb (patch)
treea7d894652fd4a3b12ac5d01b98629563afab8e96 /src/gui/opengl/qopenglfunctions.cpp
parentf9d5d23508611e671dd730bc546e440ff757bc27 (diff)
Add comment to the obscure initialization of QOpenGLFunctions.
Change-Id: I9386c0e3b158a675e2dcbce34eecb57edf0ac27b Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/gui/opengl/qopenglfunctions.cpp')
-rw-r--r--src/gui/opengl/qopenglfunctions.cpp4
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;