55QOpenGLFunctions_4_4_Core::~QOpenGLFunctions_4_4_Core()
58 d_1_0_Core->refs.deref();
59 Q_ASSERT(d_1_0_Core->refs.loadRelaxed());
62 d_1_1_Core->refs.deref();
63 Q_ASSERT(d_1_1_Core->refs.loadRelaxed());
66 d_1_2_Core->refs.deref();
67 Q_ASSERT(d_1_2_Core->refs.loadRelaxed());
70 d_1_3_Core->refs.deref();
71 Q_ASSERT(d_1_3_Core->refs.loadRelaxed());
74 d_1_4_Core->refs.deref();
75 Q_ASSERT(d_1_4_Core->refs.loadRelaxed());
78 d_1_5_Core->refs.deref();
79 Q_ASSERT(d_1_5_Core->refs.loadRelaxed());
82 d_2_0_Core->refs.deref();
83 Q_ASSERT(d_2_0_Core->refs.loadRelaxed());
86 d_2_1_Core->refs.deref();
87 Q_ASSERT(d_2_1_Core->refs.loadRelaxed());
90 d_3_0_Core->refs.deref();
91 Q_ASSERT(d_3_0_Core->refs.loadRelaxed());
94 d_3_1_Core->refs.deref();
95 Q_ASSERT(d_3_1_Core->refs.loadRelaxed());
98 d_3_2_Core->refs.deref();
99 Q_ASSERT(d_3_2_Core->refs.loadRelaxed());
102 d_3_3_Core->refs.deref();
103 Q_ASSERT(d_3_3_Core->refs.loadRelaxed());
106 d_4_0_Core->refs.deref();
107 Q_ASSERT(d_4_0_Core->refs.loadRelaxed());
110 d_4_1_Core->refs.deref();
111 Q_ASSERT(d_4_1_Core->refs.loadRelaxed());
114 d_4_2_Core->refs.deref();
115 Q_ASSERT(d_4_2_Core->refs.loadRelaxed());
118 d_4_3_Core->refs.deref();
119 Q_ASSERT(d_4_3_Core->refs.loadRelaxed());
122 d_4_4_Core->refs.deref();
123 Q_ASSERT(d_4_4_Core->refs.loadRelaxed());
127bool QOpenGLFunctions_4_4_Core::initializeOpenGLFunctions()
129 if ( isInitialized() )
132 QOpenGLContext* context = QOpenGLContext::currentContext();
136 if (((owningContext() && owningContext() == context) || !owningContext())
137 && QOpenGLFunctions_4_4_Core::isContextCompatible(context))
141 QOpenGLVersionFunctionsBackend* d =
nullptr;
142 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_0_CoreBackend::versionStatus());
143 d_1_0_Core =
static_cast<QOpenGLFunctions_1_0_CoreBackend*>(d);
146 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_1_CoreBackend::versionStatus());
147 d_1_1_Core =
static_cast<QOpenGLFunctions_1_1_CoreBackend*>(d);
150 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_2_CoreBackend::versionStatus());
151 d_1_2_Core =
static_cast<QOpenGLFunctions_1_2_CoreBackend*>(d);
154 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_3_CoreBackend::versionStatus());
155 d_1_3_Core =
static_cast<QOpenGLFunctions_1_3_CoreBackend*>(d);
158 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_4_CoreBackend::versionStatus());
159 d_1_4_Core =
static_cast<QOpenGLFunctions_1_4_CoreBackend*>(d);
162 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_5_CoreBackend::versionStatus());
163 d_1_5_Core =
static_cast<QOpenGLFunctions_1_5_CoreBackend*>(d);
166 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_2_0_CoreBackend::versionStatus());
167 d_2_0_Core =
static_cast<QOpenGLFunctions_2_0_CoreBackend*>(d);
170 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_2_1_CoreBackend::versionStatus());
171 d_2_1_Core =
static_cast<QOpenGLFunctions_2_1_CoreBackend*>(d);
174 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_0_CoreBackend::versionStatus());
175 d_3_0_Core =
static_cast<QOpenGLFunctions_3_0_CoreBackend*>(d);
178 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_1_CoreBackend::versionStatus());
179 d_3_1_Core =
static_cast<QOpenGLFunctions_3_1_CoreBackend*>(d);
182 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_2_CoreBackend::versionStatus());
183 d_3_2_Core =
static_cast<QOpenGLFunctions_3_2_CoreBackend*>(d);
186 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_3_CoreBackend::versionStatus());
187 d_3_3_Core =
static_cast<QOpenGLFunctions_3_3_CoreBackend*>(d);
190 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_4_0_CoreBackend::versionStatus());
191 d_4_0_Core =
static_cast<QOpenGLFunctions_4_0_CoreBackend*>(d);
194 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_4_1_CoreBackend::versionStatus());
195 d_4_1_Core =
static_cast<QOpenGLFunctions_4_1_CoreBackend*>(d);
198 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_4_2_CoreBackend::versionStatus());
199 d_4_2_Core =
static_cast<QOpenGLFunctions_4_2_CoreBackend*>(d);
202 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_4_3_CoreBackend::versionStatus());
203 d_4_3_Core =
static_cast<QOpenGLFunctions_4_3_CoreBackend*>(d);
206 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_4_4_CoreBackend::versionStatus());
207 d_4_4_Core =
static_cast<QOpenGLFunctions_4_4_CoreBackend*>(d);
210 QAbstractOpenGLFunctions::initializeOpenGLFunctions();
212 return isInitialized();