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_5_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_5_Compatibility::QOpenGLFunctions_4_5_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_4_4_Core(0) | - |
81 | , d_4_5_Core(0) | - |
82 | , d_1_0_Deprecated(0) | - |
83 | , d_1_1_Deprecated(0) | - |
84 | , d_1_2_Deprecated(0) | - |
85 | , d_1_3_Deprecated(0) | - |
86 | , d_1_4_Deprecated(0) | - |
87 | , d_3_3_Deprecated(0) | - |
88 | , d_4_5_Deprecated(0) | - |
89 | { | - |
90 | } never executed: end of block | 0 |
91 | | - |
92 | QOpenGLFunctions_4_5_Compatibility::~QOpenGLFunctions_4_5_Compatibility() | - |
93 | { | - |
94 | if (d_1_0_Core && !d_1_0_Core->refs.deref()) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
95 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_0_Core->context, QOpenGLFunctions_1_0_CoreBackend::versionStatus()); | - |
96 | delete d_1_0_Core; | - |
97 | } never executed: end of block | 0 |
98 | if (d_1_1_Core && !d_1_1_Core->refs.deref()) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
99 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_1_Core->context, QOpenGLFunctions_1_1_CoreBackend::versionStatus()); | - |
100 | delete d_1_1_Core; | - |
101 | } never executed: end of block | 0 |
102 | if (d_1_2_Core && !d_1_2_Core->refs.deref()) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
103 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_2_Core->context, QOpenGLFunctions_1_2_CoreBackend::versionStatus()); | - |
104 | delete d_1_2_Core; | - |
105 | } never executed: end of block | 0 |
106 | if (d_1_3_Core && !d_1_3_Core->refs.deref()) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
107 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_3_Core->context, QOpenGLFunctions_1_3_CoreBackend::versionStatus()); | - |
108 | delete d_1_3_Core; | - |
109 | } never executed: end of block | 0 |
110 | if (d_1_4_Core && !d_1_4_Core->refs.deref()) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
111 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_4_Core->context, QOpenGLFunctions_1_4_CoreBackend::versionStatus()); | - |
112 | delete d_1_4_Core; | - |
113 | } never executed: end of block | 0 |
114 | if (d_1_5_Core && !d_1_5_Core->refs.deref()) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
115 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_5_Core->context, QOpenGLFunctions_1_5_CoreBackend::versionStatus()); | - |
116 | delete d_1_5_Core; | - |
117 | } never executed: end of block | 0 |
118 | if (d_2_0_Core && !d_2_0_Core->refs.deref()) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
119 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_2_0_Core->context, QOpenGLFunctions_2_0_CoreBackend::versionStatus()); | - |
120 | delete d_2_0_Core; | - |
121 | } never executed: end of block | 0 |
122 | if (d_2_1_Core && !d_2_1_Core->refs.deref()) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
123 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_2_1_Core->context, QOpenGLFunctions_2_1_CoreBackend::versionStatus()); | - |
124 | delete d_2_1_Core; | - |
125 | } never executed: end of block | 0 |
126 | if (d_3_0_Core && !d_3_0_Core->refs.deref()) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
127 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_3_0_Core->context, QOpenGLFunctions_3_0_CoreBackend::versionStatus()); | - |
128 | delete d_3_0_Core; | - |
129 | } never executed: end of block | 0 |
130 | if (d_3_1_Core && !d_3_1_Core->refs.deref()) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
131 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_3_1_Core->context, QOpenGLFunctions_3_1_CoreBackend::versionStatus()); | - |
132 | delete d_3_1_Core; | - |
133 | } never executed: end of block | 0 |
134 | if (d_3_2_Core && !d_3_2_Core->refs.deref()) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
135 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_3_2_Core->context, QOpenGLFunctions_3_2_CoreBackend::versionStatus()); | - |
136 | delete d_3_2_Core; | - |
137 | } never executed: end of block | 0 |
138 | if (d_3_3_Core && !d_3_3_Core->refs.deref()) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
139 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_3_3_Core->context, QOpenGLFunctions_3_3_CoreBackend::versionStatus()); | - |
140 | delete d_3_3_Core; | - |
141 | } never executed: end of block | 0 |
142 | if (d_4_0_Core && !d_4_0_Core->refs.deref()) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
143 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_4_0_Core->context, QOpenGLFunctions_4_0_CoreBackend::versionStatus()); | - |
144 | delete d_4_0_Core; | - |
145 | } never executed: end of block | 0 |
146 | if (d_4_1_Core && !d_4_1_Core->refs.deref()) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
147 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_4_1_Core->context, QOpenGLFunctions_4_1_CoreBackend::versionStatus()); | - |
148 | delete d_4_1_Core; | - |
149 | } never executed: end of block | 0 |
150 | if (d_4_2_Core && !d_4_2_Core->refs.deref()) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
151 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_4_2_Core->context, QOpenGLFunctions_4_2_CoreBackend::versionStatus()); | - |
152 | delete d_4_2_Core; | - |
153 | } never executed: end of block | 0 |
154 | if (d_4_3_Core && !d_4_3_Core->refs.deref()) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
155 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_4_3_Core->context, QOpenGLFunctions_4_3_CoreBackend::versionStatus()); | - |
156 | delete d_4_3_Core; | - |
157 | } never executed: end of block | 0 |
158 | if (d_4_4_Core && !d_4_4_Core->refs.deref()) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
159 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_4_4_Core->context, QOpenGLFunctions_4_4_CoreBackend::versionStatus()); | - |
160 | delete d_4_4_Core; | - |
161 | } never executed: end of block | 0 |
162 | if (d_4_5_Core && !d_4_5_Core->refs.deref()) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
163 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_4_5_Core->context, QOpenGLFunctions_4_5_CoreBackend::versionStatus()); | - |
164 | delete d_4_5_Core; | - |
165 | } never executed: end of block | 0 |
166 | if (d_1_0_Deprecated && !d_1_0_Deprecated->refs.deref()) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
167 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_0_Deprecated->context, QOpenGLFunctions_1_0_DeprecatedBackend::versionStatus()); | - |
168 | delete d_1_0_Deprecated; | - |
169 | } never executed: end of block | 0 |
170 | if (d_1_1_Deprecated && !d_1_1_Deprecated->refs.deref()) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
171 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_1_Deprecated->context, QOpenGLFunctions_1_1_DeprecatedBackend::versionStatus()); | - |
172 | delete d_1_1_Deprecated; | - |
173 | } never executed: end of block | 0 |
174 | if (d_1_2_Deprecated && !d_1_2_Deprecated->refs.deref()) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
175 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_2_Deprecated->context, QOpenGLFunctions_1_2_DeprecatedBackend::versionStatus()); | - |
176 | delete d_1_2_Deprecated; | - |
177 | } never executed: end of block | 0 |
178 | if (d_1_3_Deprecated && !d_1_3_Deprecated->refs.deref()) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
179 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_3_Deprecated->context, QOpenGLFunctions_1_3_DeprecatedBackend::versionStatus()); | - |
180 | delete d_1_3_Deprecated; | - |
181 | } never executed: end of block | 0 |
182 | if (d_1_4_Deprecated && !d_1_4_Deprecated->refs.deref()) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
183 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_4_Deprecated->context, QOpenGLFunctions_1_4_DeprecatedBackend::versionStatus()); | - |
184 | delete d_1_4_Deprecated; | - |
185 | } never executed: end of block | 0 |
186 | if (d_3_3_Deprecated && !d_3_3_Deprecated->refs.deref()) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
187 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_3_3_Deprecated->context, QOpenGLFunctions_3_3_DeprecatedBackend::versionStatus()); | - |
188 | delete d_3_3_Deprecated; | - |
189 | } never executed: end of block | 0 |
190 | if (d_4_5_Deprecated && !d_4_5_Deprecated->refs.deref()) {TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
191 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_4_5_Deprecated->context, QOpenGLFunctions_4_5_DeprecatedBackend::versionStatus()); | - |
192 | delete d_4_5_Deprecated; | - |
193 | } never executed: end of block | 0 |
194 | } never executed: end of block | 0 |
195 | | - |
196 | bool QOpenGLFunctions_4_5_Compatibility::initializeOpenGLFunctions() | - |
197 | { | - |
198 | if ( isInitialized() )TRUE | never evaluated | FALSE | never evaluated |
| 0 |
199 | return true; never executed: return true; | 0 |
200 | | - |
201 | QOpenGLContext* context = QOpenGLContext::currentContext(); | - |
202 | | - |
203 | | - |
204 | | - |
205 | if (((owningContext() && owningContext() == context) || !owningContext())TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | never evaluated |
| 0 |
206 | && QOpenGLFunctions_4_5_Compatibility::isContextCompatible(context))TRUE | never evaluated | FALSE | never evaluated |
| 0 |
207 | { | - |
208 | | - |
209 | | - |
210 | QOpenGLVersionFunctionsBackend* d = 0; | - |
211 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_0_CoreBackend::versionStatus()); | - |
212 | if (!d) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
213 | d = new QOpenGLFunctions_1_0_CoreBackend(context); | - |
214 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_0_CoreBackend::versionStatus(), d); | - |
215 | } never executed: end of block | 0 |
216 | d_1_0_Core = static_cast<QOpenGLFunctions_1_0_CoreBackend*>(d); | - |
217 | d->refs.ref(); | - |
218 | | - |
219 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_1_CoreBackend::versionStatus()); | - |
220 | if (!d) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
221 | d = new QOpenGLFunctions_1_1_CoreBackend(context); | - |
222 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_1_CoreBackend::versionStatus(), d); | - |
223 | } never executed: end of block | 0 |
224 | d_1_1_Core = static_cast<QOpenGLFunctions_1_1_CoreBackend*>(d); | - |
225 | d->refs.ref(); | - |
226 | | - |
227 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_2_CoreBackend::versionStatus()); | - |
228 | if (!d) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
229 | d = new QOpenGLFunctions_1_2_CoreBackend(context); | - |
230 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_2_CoreBackend::versionStatus(), d); | - |
231 | } never executed: end of block | 0 |
232 | d_1_2_Core = static_cast<QOpenGLFunctions_1_2_CoreBackend*>(d); | - |
233 | d->refs.ref(); | - |
234 | | - |
235 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_3_CoreBackend::versionStatus()); | - |
236 | if (!d) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
237 | d = new QOpenGLFunctions_1_3_CoreBackend(context); | - |
238 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_3_CoreBackend::versionStatus(), d); | - |
239 | } never executed: end of block | 0 |
240 | d_1_3_Core = static_cast<QOpenGLFunctions_1_3_CoreBackend*>(d); | - |
241 | d->refs.ref(); | - |
242 | | - |
243 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_4_CoreBackend::versionStatus()); | - |
244 | if (!d) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
245 | d = new QOpenGLFunctions_1_4_CoreBackend(context); | - |
246 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_4_CoreBackend::versionStatus(), d); | - |
247 | } never executed: end of block | 0 |
248 | d_1_4_Core = static_cast<QOpenGLFunctions_1_4_CoreBackend*>(d); | - |
249 | d->refs.ref(); | - |
250 | | - |
251 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_5_CoreBackend::versionStatus()); | - |
252 | if (!d) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
253 | d = new QOpenGLFunctions_1_5_CoreBackend(context); | - |
254 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_5_CoreBackend::versionStatus(), d); | - |
255 | } never executed: end of block | 0 |
256 | d_1_5_Core = static_cast<QOpenGLFunctions_1_5_CoreBackend*>(d); | - |
257 | d->refs.ref(); | - |
258 | | - |
259 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_2_0_CoreBackend::versionStatus()); | - |
260 | if (!d) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
261 | d = new QOpenGLFunctions_2_0_CoreBackend(context); | - |
262 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_2_0_CoreBackend::versionStatus(), d); | - |
263 | } never executed: end of block | 0 |
264 | d_2_0_Core = static_cast<QOpenGLFunctions_2_0_CoreBackend*>(d); | - |
265 | d->refs.ref(); | - |
266 | | - |
267 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_2_1_CoreBackend::versionStatus()); | - |
268 | if (!d) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
269 | d = new QOpenGLFunctions_2_1_CoreBackend(context); | - |
270 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_2_1_CoreBackend::versionStatus(), d); | - |
271 | } never executed: end of block | 0 |
272 | d_2_1_Core = static_cast<QOpenGLFunctions_2_1_CoreBackend*>(d); | - |
273 | d->refs.ref(); | - |
274 | | - |
275 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_0_CoreBackend::versionStatus()); | - |
276 | if (!d) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
277 | d = new QOpenGLFunctions_3_0_CoreBackend(context); | - |
278 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_3_0_CoreBackend::versionStatus(), d); | - |
279 | } never executed: end of block | 0 |
280 | d_3_0_Core = static_cast<QOpenGLFunctions_3_0_CoreBackend*>(d); | - |
281 | d->refs.ref(); | - |
282 | | - |
283 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_1_CoreBackend::versionStatus()); | - |
284 | if (!d) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
285 | d = new QOpenGLFunctions_3_1_CoreBackend(context); | - |
286 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_3_1_CoreBackend::versionStatus(), d); | - |
287 | } never executed: end of block | 0 |
288 | d_3_1_Core = static_cast<QOpenGLFunctions_3_1_CoreBackend*>(d); | - |
289 | d->refs.ref(); | - |
290 | | - |
291 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_2_CoreBackend::versionStatus()); | - |
292 | if (!d) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
293 | d = new QOpenGLFunctions_3_2_CoreBackend(context); | - |
294 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_3_2_CoreBackend::versionStatus(), d); | - |
295 | } never executed: end of block | 0 |
296 | d_3_2_Core = static_cast<QOpenGLFunctions_3_2_CoreBackend*>(d); | - |
297 | d->refs.ref(); | - |
298 | | - |
299 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_3_CoreBackend::versionStatus()); | - |
300 | if (!d) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
301 | d = new QOpenGLFunctions_3_3_CoreBackend(context); | - |
302 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_3_3_CoreBackend::versionStatus(), d); | - |
303 | } never executed: end of block | 0 |
304 | d_3_3_Core = static_cast<QOpenGLFunctions_3_3_CoreBackend*>(d); | - |
305 | d->refs.ref(); | - |
306 | | - |
307 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_4_0_CoreBackend::versionStatus()); | - |
308 | if (!d) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
309 | d = new QOpenGLFunctions_4_0_CoreBackend(context); | - |
310 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_4_0_CoreBackend::versionStatus(), d); | - |
311 | } never executed: end of block | 0 |
312 | d_4_0_Core = static_cast<QOpenGLFunctions_4_0_CoreBackend*>(d); | - |
313 | d->refs.ref(); | - |
314 | | - |
315 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_4_1_CoreBackend::versionStatus()); | - |
316 | if (!d) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
317 | d = new QOpenGLFunctions_4_1_CoreBackend(context); | - |
318 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_4_1_CoreBackend::versionStatus(), d); | - |
319 | } never executed: end of block | 0 |
320 | d_4_1_Core = static_cast<QOpenGLFunctions_4_1_CoreBackend*>(d); | - |
321 | d->refs.ref(); | - |
322 | | - |
323 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_4_2_CoreBackend::versionStatus()); | - |
324 | if (!d) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
325 | d = new QOpenGLFunctions_4_2_CoreBackend(context); | - |
326 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_4_2_CoreBackend::versionStatus(), d); | - |
327 | } never executed: end of block | 0 |
328 | d_4_2_Core = static_cast<QOpenGLFunctions_4_2_CoreBackend*>(d); | - |
329 | d->refs.ref(); | - |
330 | | - |
331 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_4_3_CoreBackend::versionStatus()); | - |
332 | if (!d) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
333 | d = new QOpenGLFunctions_4_3_CoreBackend(context); | - |
334 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_4_3_CoreBackend::versionStatus(), d); | - |
335 | } never executed: end of block | 0 |
336 | d_4_3_Core = static_cast<QOpenGLFunctions_4_3_CoreBackend*>(d); | - |
337 | d->refs.ref(); | - |
338 | | - |
339 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_4_4_CoreBackend::versionStatus()); | - |
340 | if (!d) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
341 | d = new QOpenGLFunctions_4_4_CoreBackend(context); | - |
342 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_4_4_CoreBackend::versionStatus(), d); | - |
343 | } never executed: end of block | 0 |
344 | d_4_4_Core = static_cast<QOpenGLFunctions_4_4_CoreBackend*>(d); | - |
345 | d->refs.ref(); | - |
346 | | - |
347 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_4_5_CoreBackend::versionStatus()); | - |
348 | if (!d) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
349 | d = new QOpenGLFunctions_4_5_CoreBackend(context); | - |
350 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_4_5_CoreBackend::versionStatus(), d); | - |
351 | } never executed: end of block | 0 |
352 | d_4_5_Core = static_cast<QOpenGLFunctions_4_5_CoreBackend*>(d); | - |
353 | d->refs.ref(); | - |
354 | | - |
355 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_0_DeprecatedBackend::versionStatus()); | - |
356 | if (!d) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
357 | d = new QOpenGLFunctions_1_0_DeprecatedBackend(context); | - |
358 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_0_DeprecatedBackend::versionStatus(), d); | - |
359 | } never executed: end of block | 0 |
360 | d_1_0_Deprecated = static_cast<QOpenGLFunctions_1_0_DeprecatedBackend*>(d); | - |
361 | d->refs.ref(); | - |
362 | | - |
363 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_1_DeprecatedBackend::versionStatus()); | - |
364 | if (!d) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
365 | d = new QOpenGLFunctions_1_1_DeprecatedBackend(context); | - |
366 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_1_DeprecatedBackend::versionStatus(), d); | - |
367 | } never executed: end of block | 0 |
368 | d_1_1_Deprecated = static_cast<QOpenGLFunctions_1_1_DeprecatedBackend*>(d); | - |
369 | d->refs.ref(); | - |
370 | | - |
371 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_2_DeprecatedBackend::versionStatus()); | - |
372 | if (!d) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
373 | d = new QOpenGLFunctions_1_2_DeprecatedBackend(context); | - |
374 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_2_DeprecatedBackend::versionStatus(), d); | - |
375 | } never executed: end of block | 0 |
376 | d_1_2_Deprecated = static_cast<QOpenGLFunctions_1_2_DeprecatedBackend*>(d); | - |
377 | d->refs.ref(); | - |
378 | | - |
379 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_3_DeprecatedBackend::versionStatus()); | - |
380 | if (!d) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
381 | d = new QOpenGLFunctions_1_3_DeprecatedBackend(context); | - |
382 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_3_DeprecatedBackend::versionStatus(), d); | - |
383 | } never executed: end of block | 0 |
384 | d_1_3_Deprecated = static_cast<QOpenGLFunctions_1_3_DeprecatedBackend*>(d); | - |
385 | d->refs.ref(); | - |
386 | | - |
387 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_4_DeprecatedBackend::versionStatus()); | - |
388 | if (!d) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
389 | d = new QOpenGLFunctions_1_4_DeprecatedBackend(context); | - |
390 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_4_DeprecatedBackend::versionStatus(), d); | - |
391 | } never executed: end of block | 0 |
392 | d_1_4_Deprecated = static_cast<QOpenGLFunctions_1_4_DeprecatedBackend*>(d); | - |
393 | d->refs.ref(); | - |
394 | | - |
395 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_3_DeprecatedBackend::versionStatus()); | - |
396 | if (!d) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
397 | d = new QOpenGLFunctions_3_3_DeprecatedBackend(context); | - |
398 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_3_3_DeprecatedBackend::versionStatus(), d); | - |
399 | } never executed: end of block | 0 |
400 | d_3_3_Deprecated = static_cast<QOpenGLFunctions_3_3_DeprecatedBackend*>(d); | - |
401 | d->refs.ref(); | - |
402 | | - |
403 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_4_5_DeprecatedBackend::versionStatus()); | - |
404 | if (!d) {TRUE | never evaluated | FALSE | never evaluated |
| 0 |
405 | d = new QOpenGLFunctions_4_5_DeprecatedBackend(context); | - |
406 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_4_5_DeprecatedBackend::versionStatus(), d); | - |
407 | } never executed: end of block | 0 |
408 | d_4_5_Deprecated = static_cast<QOpenGLFunctions_4_5_DeprecatedBackend*>(d); | - |
409 | d->refs.ref(); | - |
410 | | - |
411 | QAbstractOpenGLFunctions::initializeOpenGLFunctions(); | - |
412 | } never executed: end of block | 0 |
413 | return isInitialized(); never executed: return isInitialized(); | 0 |
414 | } | - |
415 | | - |
416 | bool QOpenGLFunctions_4_5_Compatibility::isContextCompatible(QOpenGLContext *context) | - |
417 | { | - |
418 | Q_ASSERT(context); | - |
419 | QSurfaceFormat f = context->format(); | - |
420 | const QPair<int, int> v = qMakePair(f.majorVersion(), f.minorVersion()); | - |
421 | if (v < qMakePair(4, 5))TRUE | never evaluated | FALSE | never evaluated |
| 0 |
422 | return false; never executed: return false; | 0 |
423 | | - |
424 | if (f.profile() == QSurfaceFormat::CoreProfile)TRUE | never evaluated | FALSE | never evaluated |
| 0 |
425 | return false; never executed: return false; | 0 |
426 | | - |
427 | return true; never executed: return true; | 0 |
428 | } | - |
429 | | - |
430 | QOpenGLVersionProfile QOpenGLFunctions_4_5_Compatibility::versionProfile() | - |
431 | { | - |
432 | QOpenGLVersionProfile v; | - |
433 | v.setVersion(4, 5); | - |
434 | v.setProfile(QSurfaceFormat::CompatibilityProfile); | - |
435 | return v; never executed: return v; | 0 |
436 | } | - |
437 | | - |
438 | QT_END_NAMESPACE | - |
| | |