49QOpenGLFunctions_3_2_Core::~QOpenGLFunctions_3_2_Core()
52 d_1_0_Core->refs.deref();
53 Q_ASSERT(d_1_0_Core->refs.loadRelaxed());
56 d_1_1_Core->refs.deref();
57 Q_ASSERT(d_1_1_Core->refs.loadRelaxed());
60 d_1_2_Core->refs.deref();
61 Q_ASSERT(d_1_2_Core->refs.loadRelaxed());
64 d_1_3_Core->refs.deref();
65 Q_ASSERT(d_1_3_Core->refs.loadRelaxed());
68 d_1_4_Core->refs.deref();
69 Q_ASSERT(d_1_4_Core->refs.loadRelaxed());
72 d_1_5_Core->refs.deref();
73 Q_ASSERT(d_1_5_Core->refs.loadRelaxed());
76 d_2_0_Core->refs.deref();
77 Q_ASSERT(d_2_0_Core->refs.loadRelaxed());
80 d_2_1_Core->refs.deref();
81 Q_ASSERT(d_2_1_Core->refs.loadRelaxed());
84 d_3_0_Core->refs.deref();
85 Q_ASSERT(d_3_0_Core->refs.loadRelaxed());
88 d_3_1_Core->refs.deref();
89 Q_ASSERT(d_3_1_Core->refs.loadRelaxed());
92 d_3_2_Core->refs.deref();
93 Q_ASSERT(d_3_2_Core->refs.loadRelaxed());
97bool QOpenGLFunctions_3_2_Core::initializeOpenGLFunctions()
99 if ( isInitialized() )
102 QOpenGLContext* context = QOpenGLContext::currentContext();
106 if (((owningContext() && owningContext() == context) || !owningContext())
107 && QOpenGLFunctions_3_2_Core::isContextCompatible(context))
111 QOpenGLVersionFunctionsBackend* d =
nullptr;
112 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_0_CoreBackend::versionStatus());
113 d_1_0_Core =
static_cast<QOpenGLFunctions_1_0_CoreBackend*>(d);
116 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_1_CoreBackend::versionStatus());
117 d_1_1_Core =
static_cast<QOpenGLFunctions_1_1_CoreBackend*>(d);
120 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_2_CoreBackend::versionStatus());
121 d_1_2_Core =
static_cast<QOpenGLFunctions_1_2_CoreBackend*>(d);
124 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_3_CoreBackend::versionStatus());
125 d_1_3_Core =
static_cast<QOpenGLFunctions_1_3_CoreBackend*>(d);
128 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_4_CoreBackend::versionStatus());
129 d_1_4_Core =
static_cast<QOpenGLFunctions_1_4_CoreBackend*>(d);
132 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_5_CoreBackend::versionStatus());
133 d_1_5_Core =
static_cast<QOpenGLFunctions_1_5_CoreBackend*>(d);
136 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_2_0_CoreBackend::versionStatus());
137 d_2_0_Core =
static_cast<QOpenGLFunctions_2_0_CoreBackend*>(d);
140 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_2_1_CoreBackend::versionStatus());
141 d_2_1_Core =
static_cast<QOpenGLFunctions_2_1_CoreBackend*>(d);
144 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_0_CoreBackend::versionStatus());
145 d_3_0_Core =
static_cast<QOpenGLFunctions_3_0_CoreBackend*>(d);
148 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_1_CoreBackend::versionStatus());
149 d_3_1_Core =
static_cast<QOpenGLFunctions_3_1_CoreBackend*>(d);
152 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_2_CoreBackend::versionStatus());
153 d_3_2_Core =
static_cast<QOpenGLFunctions_3_2_CoreBackend*>(d);
156 QAbstractOpenGLFunctions::initializeOpenGLFunctions();
158 return isInitialized();