Add comment to the obscure initialization of QOpenGLFunctions.
Change-Id: I9386c0e3b158a675e2dcbce34eecb57edf0ac27b Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
This commit is contained in:
parent
f9d5d23508
commit
45aa0a219a
@ -2340,6 +2340,10 @@ static void QOPENGLF_APIENTRY qopenglfResolveGetBufferSubData(GLenum target, qop
|
|||||||
|
|
||||||
QOpenGLFunctionsPrivate::QOpenGLFunctionsPrivate(QOpenGLContext *)
|
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
|
#ifndef QT_OPENGL_ES_2
|
||||||
ActiveTexture = qopenglfResolveActiveTexture;
|
ActiveTexture = qopenglfResolveActiveTexture;
|
||||||
AttachShader = qopenglfResolveAttachShader;
|
AttachShader = qopenglfResolveAttachShader;
|
||||||
|
Loading…
Reference in New Issue
Block a user