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