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