Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
7 | | - |
8 | | - |
9 | | - |
10 | | - |
11 | | - |
12 | | - |
13 | | - |
14 | | - |
15 | | - |
16 | | - |
17 | | - |
18 | | - |
19 | | - |
20 | | - |
21 | | - |
22 | | - |
23 | | - |
24 | | - |
25 | | - |
26 | | - |
27 | | - |
28 | | - |
29 | | - |
30 | | - |
31 | | - |
32 | | - |
33 | | - |
34 | | - |
35 | | - |
36 | | - |
37 | | - |
38 | | - |
39 | | - |
40 | | - |
41 | | - |
42 | | - |
43 | #include "qopenglfunctions_4_3_compatibility.h" | - |
44 | #include "qopenglcontext.h" | - |
45 | | - |
46 | QT_BEGIN_NAMESPACE | - |
47 | | - |
48 | | - |
49 | | - |
50 | | - |
51 | | - |
52 | | - |
53 | | - |
54 | | - |
55 | | - |
56 | | - |
57 | | - |
58 | | - |
59 | | - |
60 | | - |
61 | | - |
62 | QOpenGLFunctions_4_3_Compatibility::QOpenGLFunctions_4_3_Compatibility() | - |
63 | : QAbstractOpenGLFunctions() | - |
64 | , d_1_0_Core(0) | - |
65 | , d_1_1_Core(0) | - |
66 | , d_1_2_Core(0) | - |
67 | , d_1_3_Core(0) | - |
68 | , d_1_4_Core(0) | - |
69 | , d_1_5_Core(0) | - |
70 | , d_2_0_Core(0) | - |
71 | , d_2_1_Core(0) | - |
72 | , d_3_0_Core(0) | - |
73 | , d_3_1_Core(0) | - |
74 | , d_3_2_Core(0) | - |
75 | , d_3_3_Core(0) | - |
76 | , d_4_0_Core(0) | - |
77 | , d_4_1_Core(0) | - |
78 | , d_4_2_Core(0) | - |
79 | , d_4_3_Core(0) | - |
80 | , d_1_0_Deprecated(0) | - |
81 | , d_1_1_Deprecated(0) | - |
82 | , d_1_2_Deprecated(0) | - |
83 | , d_1_3_Deprecated(0) | - |
84 | , d_1_4_Deprecated(0) | - |
85 | , m_reserved_2_0_Deprecated(Q_NULLPTR) | - |
86 | , d_3_3_Deprecated(0) | - |
87 | { | - |
88 | } never executed: end of block | 0 |
89 | | - |
90 | QOpenGLFunctions_4_3_Compatibility::~QOpenGLFunctions_4_3_Compatibility() | - |
91 | { | - |
92 | if (d_1_0_Core && !d_1_0_Core->refs.deref()) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
93 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_0_Core->context, QOpenGLFunctions_1_0_CoreBackend::versionStatus()); | - |
94 | delete d_1_0_Core; | - |
95 | } never executed: end of block | 0 |
96 | if (d_1_1_Core && !d_1_1_Core->refs.deref()) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
97 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_1_Core->context, QOpenGLFunctions_1_1_CoreBackend::versionStatus()); | - |
98 | delete d_1_1_Core; | - |
99 | } never executed: end of block | 0 |
100 | if (d_1_2_Core && !d_1_2_Core->refs.deref()) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
101 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_2_Core->context, QOpenGLFunctions_1_2_CoreBackend::versionStatus()); | - |
102 | delete d_1_2_Core; | - |
103 | } never executed: end of block | 0 |
104 | if (d_1_3_Core && !d_1_3_Core->refs.deref()) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
105 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_3_Core->context, QOpenGLFunctions_1_3_CoreBackend::versionStatus()); | - |
106 | delete d_1_3_Core; | - |
107 | } never executed: end of block | 0 |
108 | if (d_1_4_Core && !d_1_4_Core->refs.deref()) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
109 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_4_Core->context, QOpenGLFunctions_1_4_CoreBackend::versionStatus()); | - |
110 | delete d_1_4_Core; | - |
111 | } never executed: end of block | 0 |
112 | if (d_1_5_Core && !d_1_5_Core->refs.deref()) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
113 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_5_Core->context, QOpenGLFunctions_1_5_CoreBackend::versionStatus()); | - |
114 | delete d_1_5_Core; | - |
115 | } never executed: end of block | 0 |
116 | if (d_2_0_Core && !d_2_0_Core->refs.deref()) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
117 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_2_0_Core->context, QOpenGLFunctions_2_0_CoreBackend::versionStatus()); | - |
118 | delete d_2_0_Core; | - |
119 | } never executed: end of block | 0 |
120 | if (d_2_1_Core && !d_2_1_Core->refs.deref()) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
121 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_2_1_Core->context, QOpenGLFunctions_2_1_CoreBackend::versionStatus()); | - |
122 | delete d_2_1_Core; | - |
123 | } never executed: end of block | 0 |
124 | if (d_3_0_Core && !d_3_0_Core->refs.deref()) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
125 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_3_0_Core->context, QOpenGLFunctions_3_0_CoreBackend::versionStatus()); | - |
126 | delete d_3_0_Core; | - |
127 | } never executed: end of block | 0 |
128 | if (d_3_1_Core && !d_3_1_Core->refs.deref()) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
129 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_3_1_Core->context, QOpenGLFunctions_3_1_CoreBackend::versionStatus()); | - |
130 | delete d_3_1_Core; | - |
131 | } never executed: end of block | 0 |
132 | if (d_3_2_Core && !d_3_2_Core->refs.deref()) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
133 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_3_2_Core->context, QOpenGLFunctions_3_2_CoreBackend::versionStatus()); | - |
134 | delete d_3_2_Core; | - |
135 | } never executed: end of block | 0 |
136 | if (d_3_3_Core && !d_3_3_Core->refs.deref()) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
137 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_3_3_Core->context, QOpenGLFunctions_3_3_CoreBackend::versionStatus()); | - |
138 | delete d_3_3_Core; | - |
139 | } never executed: end of block | 0 |
140 | if (d_4_0_Core && !d_4_0_Core->refs.deref()) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
141 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_4_0_Core->context, QOpenGLFunctions_4_0_CoreBackend::versionStatus()); | - |
142 | delete d_4_0_Core; | - |
143 | } never executed: end of block | 0 |
144 | if (d_4_1_Core && !d_4_1_Core->refs.deref()) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
145 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_4_1_Core->context, QOpenGLFunctions_4_1_CoreBackend::versionStatus()); | - |
146 | delete d_4_1_Core; | - |
147 | } never executed: end of block | 0 |
148 | if (d_4_2_Core && !d_4_2_Core->refs.deref()) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
149 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_4_2_Core->context, QOpenGLFunctions_4_2_CoreBackend::versionStatus()); | - |
150 | delete d_4_2_Core; | - |
151 | } never executed: end of block | 0 |
152 | if (d_4_3_Core && !d_4_3_Core->refs.deref()) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
153 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_4_3_Core->context, QOpenGLFunctions_4_3_CoreBackend::versionStatus()); | - |
154 | delete d_4_3_Core; | - |
155 | } never executed: end of block | 0 |
156 | if (d_1_0_Deprecated && !d_1_0_Deprecated->refs.deref()) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
157 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_0_Deprecated->context, QOpenGLFunctions_1_0_DeprecatedBackend::versionStatus()); | - |
158 | delete d_1_0_Deprecated; | - |
159 | } never executed: end of block | 0 |
160 | if (d_1_1_Deprecated && !d_1_1_Deprecated->refs.deref()) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
161 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_1_Deprecated->context, QOpenGLFunctions_1_1_DeprecatedBackend::versionStatus()); | - |
162 | delete d_1_1_Deprecated; | - |
163 | } never executed: end of block | 0 |
164 | if (d_1_2_Deprecated && !d_1_2_Deprecated->refs.deref()) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
165 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_2_Deprecated->context, QOpenGLFunctions_1_2_DeprecatedBackend::versionStatus()); | - |
166 | delete d_1_2_Deprecated; | - |
167 | } never executed: end of block | 0 |
168 | if (d_1_3_Deprecated && !d_1_3_Deprecated->refs.deref()) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
169 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_3_Deprecated->context, QOpenGLFunctions_1_3_DeprecatedBackend::versionStatus()); | - |
170 | delete d_1_3_Deprecated; | - |
171 | } never executed: end of block | 0 |
172 | if (d_1_4_Deprecated && !d_1_4_Deprecated->refs.deref()) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
173 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_4_Deprecated->context, QOpenGLFunctions_1_4_DeprecatedBackend::versionStatus()); | - |
174 | delete d_1_4_Deprecated; | - |
175 | } never executed: end of block | 0 |
176 | if (d_3_3_Deprecated && !d_3_3_Deprecated->refs.deref()) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
177 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_3_3_Deprecated->context, QOpenGLFunctions_3_3_DeprecatedBackend::versionStatus()); | - |
178 | delete d_3_3_Deprecated; | - |
179 | } never executed: end of block | 0 |
180 | } never executed: end of block | 0 |
181 | | - |
182 | bool QOpenGLFunctions_4_3_Compatibility::initializeOpenGLFunctions() | - |
183 | { | - |
184 | if ( isInitialized() )TRUE | never evaluated | FALSE | never evaluated |
| 0 |
185 | return true; never executed: return true; | 0 |
186 | | - |
187 | QOpenGLContext* context = QOpenGLContext::currentContext(); | - |
188 | | - |
189 | | - |
190 | | - |
191 | if (((owningContext() && owningContext() == context) || !owningContext())TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
192 | && QOpenGLFunctions_4_3_Compatibility::isContextCompatible(context))TRUE | never evaluated | FALSE | never evaluated |
| 0 |
193 | { | - |
194 | | - |
195 | | - |
196 | QOpenGLVersionFunctionsBackend* d = 0; | - |
197 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_0_CoreBackend::versionStatus()); | - |
198 | if (!d) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
199 | d = new QOpenGLFunctions_1_0_CoreBackend(context); | - |
200 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_0_CoreBackend::versionStatus(), d); | - |
201 | } never executed: end of block | 0 |
202 | d_1_0_Core = static_cast<QOpenGLFunctions_1_0_CoreBackend*>(d); | - |
203 | d->refs.ref(); | - |
204 | | - |
205 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_1_CoreBackend::versionStatus()); | - |
206 | if (!d) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
207 | d = new QOpenGLFunctions_1_1_CoreBackend(context); | - |
208 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_1_CoreBackend::versionStatus(), d); | - |
209 | } never executed: end of block | 0 |
210 | d_1_1_Core = static_cast<QOpenGLFunctions_1_1_CoreBackend*>(d); | - |
211 | d->refs.ref(); | - |
212 | | - |
213 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_2_CoreBackend::versionStatus()); | - |
214 | if (!d) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
215 | d = new QOpenGLFunctions_1_2_CoreBackend(context); | - |
216 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_2_CoreBackend::versionStatus(), d); | - |
217 | } never executed: end of block | 0 |
218 | d_1_2_Core = static_cast<QOpenGLFunctions_1_2_CoreBackend*>(d); | - |
219 | d->refs.ref(); | - |
220 | | - |
221 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_3_CoreBackend::versionStatus()); | - |
222 | if (!d) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
223 | d = new QOpenGLFunctions_1_3_CoreBackend(context); | - |
224 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_3_CoreBackend::versionStatus(), d); | - |
225 | } never executed: end of block | 0 |
226 | d_1_3_Core = static_cast<QOpenGLFunctions_1_3_CoreBackend*>(d); | - |
227 | d->refs.ref(); | - |
228 | | - |
229 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_4_CoreBackend::versionStatus()); | - |
230 | if (!d) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
231 | d = new QOpenGLFunctions_1_4_CoreBackend(context); | - |
232 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_4_CoreBackend::versionStatus(), d); | - |
233 | } never executed: end of block | 0 |
234 | d_1_4_Core = static_cast<QOpenGLFunctions_1_4_CoreBackend*>(d); | - |
235 | d->refs.ref(); | - |
236 | | - |
237 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_5_CoreBackend::versionStatus()); | - |
238 | if (!d) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
239 | d = new QOpenGLFunctions_1_5_CoreBackend(context); | - |
240 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_5_CoreBackend::versionStatus(), d); | - |
241 | } never executed: end of block | 0 |
242 | d_1_5_Core = static_cast<QOpenGLFunctions_1_5_CoreBackend*>(d); | - |
243 | d->refs.ref(); | - |
244 | | - |
245 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_2_0_CoreBackend::versionStatus()); | - |
246 | if (!d) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
247 | d = new QOpenGLFunctions_2_0_CoreBackend(context); | - |
248 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_2_0_CoreBackend::versionStatus(), d); | - |
249 | } never executed: end of block | 0 |
250 | d_2_0_Core = static_cast<QOpenGLFunctions_2_0_CoreBackend*>(d); | - |
251 | d->refs.ref(); | - |
252 | | - |
253 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_2_1_CoreBackend::versionStatus()); | - |
254 | if (!d) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
255 | d = new QOpenGLFunctions_2_1_CoreBackend(context); | - |
256 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_2_1_CoreBackend::versionStatus(), d); | - |
257 | } never executed: end of block | 0 |
258 | d_2_1_Core = static_cast<QOpenGLFunctions_2_1_CoreBackend*>(d); | - |
259 | d->refs.ref(); | - |
260 | | - |
261 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_0_CoreBackend::versionStatus()); | - |
262 | if (!d) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
263 | d = new QOpenGLFunctions_3_0_CoreBackend(context); | - |
264 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_3_0_CoreBackend::versionStatus(), d); | - |
265 | } never executed: end of block | 0 |
266 | d_3_0_Core = static_cast<QOpenGLFunctions_3_0_CoreBackend*>(d); | - |
267 | d->refs.ref(); | - |
268 | | - |
269 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_1_CoreBackend::versionStatus()); | - |
270 | if (!d) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
271 | d = new QOpenGLFunctions_3_1_CoreBackend(context); | - |
272 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_3_1_CoreBackend::versionStatus(), d); | - |
273 | } never executed: end of block | 0 |
274 | d_3_1_Core = static_cast<QOpenGLFunctions_3_1_CoreBackend*>(d); | - |
275 | d->refs.ref(); | - |
276 | | - |
277 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_2_CoreBackend::versionStatus()); | - |
278 | if (!d) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
279 | d = new QOpenGLFunctions_3_2_CoreBackend(context); | - |
280 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_3_2_CoreBackend::versionStatus(), d); | - |
281 | } never executed: end of block | 0 |
282 | d_3_2_Core = static_cast<QOpenGLFunctions_3_2_CoreBackend*>(d); | - |
283 | d->refs.ref(); | - |
284 | | - |
285 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_3_CoreBackend::versionStatus()); | - |
286 | if (!d) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
287 | d = new QOpenGLFunctions_3_3_CoreBackend(context); | - |
288 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_3_3_CoreBackend::versionStatus(), d); | - |
289 | } never executed: end of block | 0 |
290 | d_3_3_Core = static_cast<QOpenGLFunctions_3_3_CoreBackend*>(d); | - |
291 | d->refs.ref(); | - |
292 | | - |
293 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_4_0_CoreBackend::versionStatus()); | - |
294 | if (!d) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
295 | d = new QOpenGLFunctions_4_0_CoreBackend(context); | - |
296 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_4_0_CoreBackend::versionStatus(), d); | - |
297 | } never executed: end of block | 0 |
298 | d_4_0_Core = static_cast<QOpenGLFunctions_4_0_CoreBackend*>(d); | - |
299 | d->refs.ref(); | - |
300 | | - |
301 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_4_1_CoreBackend::versionStatus()); | - |
302 | if (!d) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
303 | d = new QOpenGLFunctions_4_1_CoreBackend(context); | - |
304 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_4_1_CoreBackend::versionStatus(), d); | - |
305 | } never executed: end of block | 0 |
306 | d_4_1_Core = static_cast<QOpenGLFunctions_4_1_CoreBackend*>(d); | - |
307 | d->refs.ref(); | - |
308 | | - |
309 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_4_2_CoreBackend::versionStatus()); | - |
310 | if (!d) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
311 | d = new QOpenGLFunctions_4_2_CoreBackend(context); | - |
312 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_4_2_CoreBackend::versionStatus(), d); | - |
313 | } never executed: end of block | 0 |
314 | d_4_2_Core = static_cast<QOpenGLFunctions_4_2_CoreBackend*>(d); | - |
315 | d->refs.ref(); | - |
316 | | - |
317 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_4_3_CoreBackend::versionStatus()); | - |
318 | if (!d) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
319 | d = new QOpenGLFunctions_4_3_CoreBackend(context); | - |
320 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_4_3_CoreBackend::versionStatus(), d); | - |
321 | } never executed: end of block | 0 |
322 | d_4_3_Core = static_cast<QOpenGLFunctions_4_3_CoreBackend*>(d); | - |
323 | d->refs.ref(); | - |
324 | | - |
325 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_0_DeprecatedBackend::versionStatus()); | - |
326 | if (!d) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
327 | d = new QOpenGLFunctions_1_0_DeprecatedBackend(context); | - |
328 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_0_DeprecatedBackend::versionStatus(), d); | - |
329 | } never executed: end of block | 0 |
330 | d_1_0_Deprecated = static_cast<QOpenGLFunctions_1_0_DeprecatedBackend*>(d); | - |
331 | d->refs.ref(); | - |
332 | | - |
333 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_1_DeprecatedBackend::versionStatus()); | - |
334 | if (!d) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
335 | d = new QOpenGLFunctions_1_1_DeprecatedBackend(context); | - |
336 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_1_DeprecatedBackend::versionStatus(), d); | - |
337 | } never executed: end of block | 0 |
338 | d_1_1_Deprecated = static_cast<QOpenGLFunctions_1_1_DeprecatedBackend*>(d); | - |
339 | d->refs.ref(); | - |
340 | | - |
341 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_2_DeprecatedBackend::versionStatus()); | - |
342 | if (!d) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
343 | d = new QOpenGLFunctions_1_2_DeprecatedBackend(context); | - |
344 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_2_DeprecatedBackend::versionStatus(), d); | - |
345 | } never executed: end of block | 0 |
346 | d_1_2_Deprecated = static_cast<QOpenGLFunctions_1_2_DeprecatedBackend*>(d); | - |
347 | d->refs.ref(); | - |
348 | | - |
349 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_3_DeprecatedBackend::versionStatus()); | - |
350 | if (!d) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
351 | d = new QOpenGLFunctions_1_3_DeprecatedBackend(context); | - |
352 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_3_DeprecatedBackend::versionStatus(), d); | - |
353 | } never executed: end of block | 0 |
354 | d_1_3_Deprecated = static_cast<QOpenGLFunctions_1_3_DeprecatedBackend*>(d); | - |
355 | d->refs.ref(); | - |
356 | | - |
357 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_4_DeprecatedBackend::versionStatus()); | - |
358 | if (!d) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
359 | d = new QOpenGLFunctions_1_4_DeprecatedBackend(context); | - |
360 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_4_DeprecatedBackend::versionStatus(), d); | - |
361 | } never executed: end of block | 0 |
362 | d_1_4_Deprecated = static_cast<QOpenGLFunctions_1_4_DeprecatedBackend*>(d); | - |
363 | d->refs.ref(); | - |
364 | | - |
365 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_3_DeprecatedBackend::versionStatus()); | - |
366 | if (!d) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
367 | d = new QOpenGLFunctions_3_3_DeprecatedBackend(context); | - |
368 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_3_3_DeprecatedBackend::versionStatus(), d); | - |
369 | } never executed: end of block | 0 |
370 | d_3_3_Deprecated = static_cast<QOpenGLFunctions_3_3_DeprecatedBackend*>(d); | - |
371 | d->refs.ref(); | - |
372 | | - |
373 | QAbstractOpenGLFunctions::initializeOpenGLFunctions(); | - |
374 | } never executed: end of block | 0 |
375 | return isInitialized(); never executed: return isInitialized(); | 0 |
376 | } | - |
377 | | - |
378 | bool QOpenGLFunctions_4_3_Compatibility::isContextCompatible(QOpenGLContext *context) | - |
379 | { | - |
380 | Q_ASSERT(context); | - |
381 | QSurfaceFormat f = context->format(); | - |
382 | const QPair<int, int> v = qMakePair(f.majorVersion(), f.minorVersion()); | - |
383 | if (v < qMakePair(4, 3))TRUE | never evaluated | FALSE | never evaluated |
| 0 |
384 | return false; never executed: return false; | 0 |
385 | | - |
386 | if (f.profile() == QSurfaceFormat::CoreProfile)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
387 | return false; never executed: return false; | 0 |
388 | | - |
389 | return true; never executed: return true; | 0 |
390 | } | - |
391 | | - |
392 | QOpenGLVersionProfile QOpenGLFunctions_4_3_Compatibility::versionProfile() | - |
393 | { | - |
394 | QOpenGLVersionProfile v; | - |
395 | v.setVersion(4, 3); | - |
396 | v.setProfile(QSurfaceFormat::CompatibilityProfile); | - |
397 | return v; never executed: return v; | 0 |
398 | } | - |
399 | | - |
400 | QT_END_NAMESPACE | - |
| | |