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