57QOpenGLFunctions_4_5_Core::~QOpenGLFunctions_4_5_Core()
60 d_1_0_Core->refs.deref();
61 Q_ASSERT(d_1_0_Core->refs.loadRelaxed());
64 d_1_1_Core->refs.deref();
65 Q_ASSERT(d_1_1_Core->refs.loadRelaxed());
68 d_1_2_Core->refs.deref();
69 Q_ASSERT(d_1_2_Core->refs.loadRelaxed());
72 d_1_3_Core->refs.deref();
73 Q_ASSERT(d_1_3_Core->refs.loadRelaxed());
76 d_1_4_Core->refs.deref();
77 Q_ASSERT(d_1_4_Core->refs.loadRelaxed());
80 d_1_5_Core->refs.deref();
81 Q_ASSERT(d_1_5_Core->refs.loadRelaxed());
84 d_2_0_Core->refs.deref();
85 Q_ASSERT(d_2_0_Core->refs.loadRelaxed());
88 d_2_1_Core->refs.deref();
89 Q_ASSERT(d_2_1_Core->refs.loadRelaxed());
92 d_3_0_Core->refs.deref();
93 Q_ASSERT(d_3_0_Core->refs.loadRelaxed());
96 d_3_1_Core->refs.deref();
97 Q_ASSERT(d_3_1_Core->refs.loadRelaxed());
100 d_3_2_Core->refs.deref();
101 Q_ASSERT(d_3_2_Core->refs.loadRelaxed());
104 d_3_3_Core->refs.deref();
105 Q_ASSERT(d_3_3_Core->refs.loadRelaxed());
108 d_4_0_Core->refs.deref();
109 Q_ASSERT(d_4_0_Core->refs.loadRelaxed());
112 d_4_1_Core->refs.deref();
113 Q_ASSERT(d_4_1_Core->refs.loadRelaxed());
116 d_4_2_Core->refs.deref();
117 Q_ASSERT(d_4_2_Core->refs.loadRelaxed());
120 d_4_3_Core->refs.deref();
121 Q_ASSERT(d_4_3_Core->refs.loadRelaxed());
124 d_4_4_Core->refs.deref();
125 Q_ASSERT(d_4_4_Core->refs.loadRelaxed());
128 d_4_5_Core->refs.deref();
129 Q_ASSERT(d_4_5_Core->refs.loadRelaxed());
133bool QOpenGLFunctions_4_5_Core::initializeOpenGLFunctions()
135 if ( isInitialized() )
138 QOpenGLContext* context = QOpenGLContext::currentContext();
142 if (((owningContext() && owningContext() == context) || !owningContext())
143 && QOpenGLFunctions_4_5_Core::isContextCompatible(context))
147 QOpenGLVersionFunctionsBackend* d =
nullptr;
148 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_0_CoreBackend::versionStatus());
149 d_1_0_Core =
static_cast<QOpenGLFunctions_1_0_CoreBackend*>(d);
152 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_1_CoreBackend::versionStatus());
153 d_1_1_Core =
static_cast<QOpenGLFunctions_1_1_CoreBackend*>(d);
156 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_2_CoreBackend::versionStatus());
157 d_1_2_Core =
static_cast<QOpenGLFunctions_1_2_CoreBackend*>(d);
160 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_3_CoreBackend::versionStatus());
161 d_1_3_Core =
static_cast<QOpenGLFunctions_1_3_CoreBackend*>(d);
164 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_4_CoreBackend::versionStatus());
165 d_1_4_Core =
static_cast<QOpenGLFunctions_1_4_CoreBackend*>(d);
168 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_5_CoreBackend::versionStatus());
169 d_1_5_Core =
static_cast<QOpenGLFunctions_1_5_CoreBackend*>(d);
172 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_2_0_CoreBackend::versionStatus());
173 d_2_0_Core =
static_cast<QOpenGLFunctions_2_0_CoreBackend*>(d);
176 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_2_1_CoreBackend::versionStatus());
177 d_2_1_Core =
static_cast<QOpenGLFunctions_2_1_CoreBackend*>(d);
180 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_0_CoreBackend::versionStatus());
181 d_3_0_Core =
static_cast<QOpenGLFunctions_3_0_CoreBackend*>(d);
184 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_1_CoreBackend::versionStatus());
185 d_3_1_Core =
static_cast<QOpenGLFunctions_3_1_CoreBackend*>(d);
188 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_2_CoreBackend::versionStatus());
189 d_3_2_Core =
static_cast<QOpenGLFunctions_3_2_CoreBackend*>(d);
192 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_3_CoreBackend::versionStatus());
193 d_3_3_Core =
static_cast<QOpenGLFunctions_3_3_CoreBackend*>(d);
196 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_4_0_CoreBackend::versionStatus());
197 d_4_0_Core =
static_cast<QOpenGLFunctions_4_0_CoreBackend*>(d);
200 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_4_1_CoreBackend::versionStatus());
201 d_4_1_Core =
static_cast<QOpenGLFunctions_4_1_CoreBackend*>(d);
204 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_4_2_CoreBackend::versionStatus());
205 d_4_2_Core =
static_cast<QOpenGLFunctions_4_2_CoreBackend*>(d);
208 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_4_3_CoreBackend::versionStatus());
209 d_4_3_Core =
static_cast<QOpenGLFunctions_4_3_CoreBackend*>(d);
212 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_4_4_CoreBackend::versionStatus());
213 d_4_4_Core =
static_cast<QOpenGLFunctions_4_4_CoreBackend*>(d);
216 d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_4_5_CoreBackend::versionStatus());
217 d_4_5_Core =
static_cast<QOpenGLFunctions_4_5_CoreBackend*>(d);
220 QAbstractOpenGLFunctions::initializeOpenGLFunctions();
222 return isInitialized();