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