| 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_4_core.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_4_Core::QOpenGLFunctions_4_4_Core() | - |
| 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 | { | - |
| 82 | } never executed: end of block | 0 |
| 83 | | - |
| 84 | QOpenGLFunctions_4_4_Core::~QOpenGLFunctions_4_4_Core() | - |
| 85 | { | - |
| 86 | if (d_1_0_Core && !d_1_0_Core->refs.deref()) {| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 87 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_0_Core->context, QOpenGLFunctions_1_0_CoreBackend::versionStatus()); | - |
| 88 | delete d_1_0_Core; | - |
| 89 | } never executed: end of block | 0 |
| 90 | if (d_1_1_Core && !d_1_1_Core->refs.deref()) {| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 91 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_1_Core->context, QOpenGLFunctions_1_1_CoreBackend::versionStatus()); | - |
| 92 | delete d_1_1_Core; | - |
| 93 | } never executed: end of block | 0 |
| 94 | if (d_1_2_Core && !d_1_2_Core->refs.deref()) {| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 95 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_2_Core->context, QOpenGLFunctions_1_2_CoreBackend::versionStatus()); | - |
| 96 | delete d_1_2_Core; | - |
| 97 | } never executed: end of block | 0 |
| 98 | if (d_1_3_Core && !d_1_3_Core->refs.deref()) {| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 99 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_3_Core->context, QOpenGLFunctions_1_3_CoreBackend::versionStatus()); | - |
| 100 | delete d_1_3_Core; | - |
| 101 | } never executed: end of block | 0 |
| 102 | if (d_1_4_Core && !d_1_4_Core->refs.deref()) {| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 103 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_4_Core->context, QOpenGLFunctions_1_4_CoreBackend::versionStatus()); | - |
| 104 | delete d_1_4_Core; | - |
| 105 | } never executed: end of block | 0 |
| 106 | if (d_1_5_Core && !d_1_5_Core->refs.deref()) {| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 107 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_5_Core->context, QOpenGLFunctions_1_5_CoreBackend::versionStatus()); | - |
| 108 | delete d_1_5_Core; | - |
| 109 | } never executed: end of block | 0 |
| 110 | if (d_2_0_Core && !d_2_0_Core->refs.deref()) {| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 111 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_2_0_Core->context, QOpenGLFunctions_2_0_CoreBackend::versionStatus()); | - |
| 112 | delete d_2_0_Core; | - |
| 113 | } never executed: end of block | 0 |
| 114 | if (d_2_1_Core && !d_2_1_Core->refs.deref()) {| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 115 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_2_1_Core->context, QOpenGLFunctions_2_1_CoreBackend::versionStatus()); | - |
| 116 | delete d_2_1_Core; | - |
| 117 | } never executed: end of block | 0 |
| 118 | if (d_3_0_Core && !d_3_0_Core->refs.deref()) {| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 119 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_3_0_Core->context, QOpenGLFunctions_3_0_CoreBackend::versionStatus()); | - |
| 120 | delete d_3_0_Core; | - |
| 121 | } never executed: end of block | 0 |
| 122 | if (d_3_1_Core && !d_3_1_Core->refs.deref()) {| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 123 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_3_1_Core->context, QOpenGLFunctions_3_1_CoreBackend::versionStatus()); | - |
| 124 | delete d_3_1_Core; | - |
| 125 | } never executed: end of block | 0 |
| 126 | if (d_3_2_Core && !d_3_2_Core->refs.deref()) {| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 127 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_3_2_Core->context, QOpenGLFunctions_3_2_CoreBackend::versionStatus()); | - |
| 128 | delete d_3_2_Core; | - |
| 129 | } never executed: end of block | 0 |
| 130 | if (d_3_3_Core && !d_3_3_Core->refs.deref()) {| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 131 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_3_3_Core->context, QOpenGLFunctions_3_3_CoreBackend::versionStatus()); | - |
| 132 | delete d_3_3_Core; | - |
| 133 | } never executed: end of block | 0 |
| 134 | if (d_4_0_Core && !d_4_0_Core->refs.deref()) {| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 135 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_4_0_Core->context, QOpenGLFunctions_4_0_CoreBackend::versionStatus()); | - |
| 136 | delete d_4_0_Core; | - |
| 137 | } never executed: end of block | 0 |
| 138 | if (d_4_1_Core && !d_4_1_Core->refs.deref()) {| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 139 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_4_1_Core->context, QOpenGLFunctions_4_1_CoreBackend::versionStatus()); | - |
| 140 | delete d_4_1_Core; | - |
| 141 | } never executed: end of block | 0 |
| 142 | if (d_4_2_Core && !d_4_2_Core->refs.deref()) {| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 143 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_4_2_Core->context, QOpenGLFunctions_4_2_CoreBackend::versionStatus()); | - |
| 144 | delete d_4_2_Core; | - |
| 145 | } never executed: end of block | 0 |
| 146 | if (d_4_3_Core && !d_4_3_Core->refs.deref()) {| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 147 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_4_3_Core->context, QOpenGLFunctions_4_3_CoreBackend::versionStatus()); | - |
| 148 | delete d_4_3_Core; | - |
| 149 | } never executed: end of block | 0 |
| 150 | if (d_4_4_Core && !d_4_4_Core->refs.deref()) {| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 151 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_4_4_Core->context, QOpenGLFunctions_4_4_CoreBackend::versionStatus()); | - |
| 152 | delete d_4_4_Core; | - |
| 153 | } never executed: end of block | 0 |
| 154 | } never executed: end of block | 0 |
| 155 | | - |
| 156 | bool QOpenGLFunctions_4_4_Core::initializeOpenGLFunctions() | - |
| 157 | { | - |
| 158 | if ( isInitialized() )| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 159 | return true; never executed: return true; | 0 |
| 160 | | - |
| 161 | QOpenGLContext* context = QOpenGLContext::currentContext(); | - |
| 162 | | - |
| 163 | | - |
| 164 | | - |
| 165 | if (((owningContext() && owningContext() == context) || !owningContext())| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 166 | && QOpenGLFunctions_4_4_Core::isContextCompatible(context))| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 167 | { | - |
| 168 | | - |
| 169 | | - |
| 170 | QOpenGLVersionFunctionsBackend* d = 0; | - |
| 171 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_0_CoreBackend::versionStatus()); | - |
| 172 | if (!d) {| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 173 | d = new QOpenGLFunctions_1_0_CoreBackend(context); | - |
| 174 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_0_CoreBackend::versionStatus(), d); | - |
| 175 | } never executed: end of block | 0 |
| 176 | d_1_0_Core = static_cast<QOpenGLFunctions_1_0_CoreBackend*>(d); | - |
| 177 | d->refs.ref(); | - |
| 178 | | - |
| 179 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_1_CoreBackend::versionStatus()); | - |
| 180 | if (!d) {| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 181 | d = new QOpenGLFunctions_1_1_CoreBackend(context); | - |
| 182 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_1_CoreBackend::versionStatus(), d); | - |
| 183 | } never executed: end of block | 0 |
| 184 | d_1_1_Core = static_cast<QOpenGLFunctions_1_1_CoreBackend*>(d); | - |
| 185 | d->refs.ref(); | - |
| 186 | | - |
| 187 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_2_CoreBackend::versionStatus()); | - |
| 188 | if (!d) {| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 189 | d = new QOpenGLFunctions_1_2_CoreBackend(context); | - |
| 190 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_2_CoreBackend::versionStatus(), d); | - |
| 191 | } never executed: end of block | 0 |
| 192 | d_1_2_Core = static_cast<QOpenGLFunctions_1_2_CoreBackend*>(d); | - |
| 193 | d->refs.ref(); | - |
| 194 | | - |
| 195 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_3_CoreBackend::versionStatus()); | - |
| 196 | if (!d) {| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 197 | d = new QOpenGLFunctions_1_3_CoreBackend(context); | - |
| 198 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_3_CoreBackend::versionStatus(), d); | - |
| 199 | } never executed: end of block | 0 |
| 200 | d_1_3_Core = static_cast<QOpenGLFunctions_1_3_CoreBackend*>(d); | - |
| 201 | d->refs.ref(); | - |
| 202 | | - |
| 203 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_4_CoreBackend::versionStatus()); | - |
| 204 | if (!d) {| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 205 | d = new QOpenGLFunctions_1_4_CoreBackend(context); | - |
| 206 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_4_CoreBackend::versionStatus(), d); | - |
| 207 | } never executed: end of block | 0 |
| 208 | d_1_4_Core = static_cast<QOpenGLFunctions_1_4_CoreBackend*>(d); | - |
| 209 | d->refs.ref(); | - |
| 210 | | - |
| 211 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_5_CoreBackend::versionStatus()); | - |
| 212 | if (!d) {| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 213 | d = new QOpenGLFunctions_1_5_CoreBackend(context); | - |
| 214 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_5_CoreBackend::versionStatus(), d); | - |
| 215 | } never executed: end of block | 0 |
| 216 | d_1_5_Core = static_cast<QOpenGLFunctions_1_5_CoreBackend*>(d); | - |
| 217 | d->refs.ref(); | - |
| 218 | | - |
| 219 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_2_0_CoreBackend::versionStatus()); | - |
| 220 | if (!d) {| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 221 | d = new QOpenGLFunctions_2_0_CoreBackend(context); | - |
| 222 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_2_0_CoreBackend::versionStatus(), d); | - |
| 223 | } never executed: end of block | 0 |
| 224 | d_2_0_Core = static_cast<QOpenGLFunctions_2_0_CoreBackend*>(d); | - |
| 225 | d->refs.ref(); | - |
| 226 | | - |
| 227 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_2_1_CoreBackend::versionStatus()); | - |
| 228 | if (!d) {| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 229 | d = new QOpenGLFunctions_2_1_CoreBackend(context); | - |
| 230 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_2_1_CoreBackend::versionStatus(), d); | - |
| 231 | } never executed: end of block | 0 |
| 232 | d_2_1_Core = static_cast<QOpenGLFunctions_2_1_CoreBackend*>(d); | - |
| 233 | d->refs.ref(); | - |
| 234 | | - |
| 235 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_0_CoreBackend::versionStatus()); | - |
| 236 | if (!d) {| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 237 | d = new QOpenGLFunctions_3_0_CoreBackend(context); | - |
| 238 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_3_0_CoreBackend::versionStatus(), d); | - |
| 239 | } never executed: end of block | 0 |
| 240 | d_3_0_Core = static_cast<QOpenGLFunctions_3_0_CoreBackend*>(d); | - |
| 241 | d->refs.ref(); | - |
| 242 | | - |
| 243 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_1_CoreBackend::versionStatus()); | - |
| 244 | if (!d) {| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 245 | d = new QOpenGLFunctions_3_1_CoreBackend(context); | - |
| 246 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_3_1_CoreBackend::versionStatus(), d); | - |
| 247 | } never executed: end of block | 0 |
| 248 | d_3_1_Core = static_cast<QOpenGLFunctions_3_1_CoreBackend*>(d); | - |
| 249 | d->refs.ref(); | - |
| 250 | | - |
| 251 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_2_CoreBackend::versionStatus()); | - |
| 252 | if (!d) {| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 253 | d = new QOpenGLFunctions_3_2_CoreBackend(context); | - |
| 254 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_3_2_CoreBackend::versionStatus(), d); | - |
| 255 | } never executed: end of block | 0 |
| 256 | d_3_2_Core = static_cast<QOpenGLFunctions_3_2_CoreBackend*>(d); | - |
| 257 | d->refs.ref(); | - |
| 258 | | - |
| 259 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_3_CoreBackend::versionStatus()); | - |
| 260 | if (!d) {| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 261 | d = new QOpenGLFunctions_3_3_CoreBackend(context); | - |
| 262 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_3_3_CoreBackend::versionStatus(), d); | - |
| 263 | } never executed: end of block | 0 |
| 264 | d_3_3_Core = static_cast<QOpenGLFunctions_3_3_CoreBackend*>(d); | - |
| 265 | d->refs.ref(); | - |
| 266 | | - |
| 267 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_4_0_CoreBackend::versionStatus()); | - |
| 268 | if (!d) {| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 269 | d = new QOpenGLFunctions_4_0_CoreBackend(context); | - |
| 270 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_4_0_CoreBackend::versionStatus(), d); | - |
| 271 | } never executed: end of block | 0 |
| 272 | d_4_0_Core = static_cast<QOpenGLFunctions_4_0_CoreBackend*>(d); | - |
| 273 | d->refs.ref(); | - |
| 274 | | - |
| 275 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_4_1_CoreBackend::versionStatus()); | - |
| 276 | if (!d) {| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 277 | d = new QOpenGLFunctions_4_1_CoreBackend(context); | - |
| 278 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_4_1_CoreBackend::versionStatus(), d); | - |
| 279 | } never executed: end of block | 0 |
| 280 | d_4_1_Core = static_cast<QOpenGLFunctions_4_1_CoreBackend*>(d); | - |
| 281 | d->refs.ref(); | - |
| 282 | | - |
| 283 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_4_2_CoreBackend::versionStatus()); | - |
| 284 | if (!d) {| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 285 | d = new QOpenGLFunctions_4_2_CoreBackend(context); | - |
| 286 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_4_2_CoreBackend::versionStatus(), d); | - |
| 287 | } never executed: end of block | 0 |
| 288 | d_4_2_Core = static_cast<QOpenGLFunctions_4_2_CoreBackend*>(d); | - |
| 289 | d->refs.ref(); | - |
| 290 | | - |
| 291 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_4_3_CoreBackend::versionStatus()); | - |
| 292 | if (!d) {| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 293 | d = new QOpenGLFunctions_4_3_CoreBackend(context); | - |
| 294 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_4_3_CoreBackend::versionStatus(), d); | - |
| 295 | } never executed: end of block | 0 |
| 296 | d_4_3_Core = static_cast<QOpenGLFunctions_4_3_CoreBackend*>(d); | - |
| 297 | d->refs.ref(); | - |
| 298 | | - |
| 299 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_4_4_CoreBackend::versionStatus()); | - |
| 300 | if (!d) {| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 301 | d = new QOpenGLFunctions_4_4_CoreBackend(context); | - |
| 302 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_4_4_CoreBackend::versionStatus(), d); | - |
| 303 | } never executed: end of block | 0 |
| 304 | d_4_4_Core = static_cast<QOpenGLFunctions_4_4_CoreBackend*>(d); | - |
| 305 | d->refs.ref(); | - |
| 306 | | - |
| 307 | QAbstractOpenGLFunctions::initializeOpenGLFunctions(); | - |
| 308 | } never executed: end of block | 0 |
| 309 | return isInitialized(); never executed: return isInitialized(); | 0 |
| 310 | } | - |
| 311 | | - |
| 312 | bool QOpenGLFunctions_4_4_Core::isContextCompatible(QOpenGLContext *context) | - |
| 313 | { | - |
| 314 | Q_ASSERT(context); | - |
| 315 | QSurfaceFormat f = context->format(); | - |
| 316 | const QPair<int, int> v = qMakePair(f.majorVersion(), f.minorVersion()); | - |
| 317 | if (v < qMakePair(4, 4))| TRUE | never evaluated | | FALSE | never evaluated |
| 0 |
| 318 | return false; never executed: return false; | 0 |
| 319 | | - |
| 320 | return true; never executed: return true; | 0 |
| 321 | } | - |
| 322 | | - |
| 323 | QOpenGLVersionProfile QOpenGLFunctions_4_4_Core::versionProfile() | - |
| 324 | { | - |
| 325 | QOpenGLVersionProfile v; | - |
| 326 | v.setVersion(4, 4); | - |
| 327 | v.setProfile(QSurfaceFormat::CoreProfile); | - |
| 328 | return v; never executed: return v; | 0 |
| 329 | } | - |
| 330 | | - |
| 331 | QT_END_NAMESPACE | - |
| | |