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