| 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_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_3_2_Core::QOpenGLFunctions_3_2_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 | { | - | 
| 76 | } never executed: end of block  | 0 | 
| 77 |  | - | 
| 78 | QOpenGLFunctions_3_2_Core::~QOpenGLFunctions_3_2_Core() | - | 
| 79 | { | - | 
| 80 |     if (d_1_0_Core && !d_1_0_Core->refs.deref()) {| TRUE | never evaluated |  | FALSE | never evaluated |  
 | TRUE | never evaluated |  | FALSE | never evaluated |  
  | 0 | 
| 81 |         QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_0_Core->context, QOpenGLFunctions_1_0_CoreBackend::versionStatus()); | - | 
| 82 |         delete d_1_0_Core; | - | 
| 83 |     } never executed: end of block  | 0 | 
| 84 |     if (d_1_1_Core && !d_1_1_Core->refs.deref()) {| TRUE | never evaluated |  | FALSE | never evaluated |  
 | TRUE | never evaluated |  | FALSE | never evaluated |  
  | 0 | 
| 85 |         QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_1_Core->context, QOpenGLFunctions_1_1_CoreBackend::versionStatus()); | - | 
| 86 |         delete d_1_1_Core; | - | 
| 87 |     } never executed: end of block  | 0 | 
| 88 |     if (d_1_2_Core && !d_1_2_Core->refs.deref()) {| TRUE | never evaluated |  | FALSE | never evaluated |  
 | TRUE | never evaluated |  | FALSE | never evaluated |  
  | 0 | 
| 89 |         QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_2_Core->context, QOpenGLFunctions_1_2_CoreBackend::versionStatus()); | - | 
| 90 |         delete d_1_2_Core; | - | 
| 91 |     } never executed: end of block  | 0 | 
| 92 |     if (d_1_3_Core && !d_1_3_Core->refs.deref()) {| TRUE | never evaluated |  | FALSE | never evaluated |  
 | TRUE | never evaluated |  | FALSE | never evaluated |  
  | 0 | 
| 93 |         QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_3_Core->context, QOpenGLFunctions_1_3_CoreBackend::versionStatus()); | - | 
| 94 |         delete d_1_3_Core; | - | 
| 95 |     } never executed: end of block  | 0 | 
| 96 |     if (d_1_4_Core && !d_1_4_Core->refs.deref()) {| TRUE | never evaluated |  | FALSE | never evaluated |  
 | TRUE | never evaluated |  | FALSE | never evaluated |  
  | 0 | 
| 97 |         QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_4_Core->context, QOpenGLFunctions_1_4_CoreBackend::versionStatus()); | - | 
| 98 |         delete d_1_4_Core; | - | 
| 99 |     } never executed: end of block  | 0 | 
| 100 |     if (d_1_5_Core && !d_1_5_Core->refs.deref()) {| TRUE | never evaluated |  | FALSE | never evaluated |  
 | TRUE | never evaluated |  | FALSE | never evaluated |  
  | 0 | 
| 101 |         QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_5_Core->context, QOpenGLFunctions_1_5_CoreBackend::versionStatus()); | - | 
| 102 |         delete d_1_5_Core; | - | 
| 103 |     } never executed: end of block  | 0 | 
| 104 |     if (d_2_0_Core && !d_2_0_Core->refs.deref()) {| TRUE | never evaluated |  | FALSE | never evaluated |  
 | TRUE | never evaluated |  | FALSE | never evaluated |  
  | 0 | 
| 105 |         QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_2_0_Core->context, QOpenGLFunctions_2_0_CoreBackend::versionStatus()); | - | 
| 106 |         delete d_2_0_Core; | - | 
| 107 |     } never executed: end of block  | 0 | 
| 108 |     if (d_2_1_Core && !d_2_1_Core->refs.deref()) {| TRUE | never evaluated |  | FALSE | never evaluated |  
 | TRUE | never evaluated |  | FALSE | never evaluated |  
  | 0 | 
| 109 |         QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_2_1_Core->context, QOpenGLFunctions_2_1_CoreBackend::versionStatus()); | - | 
| 110 |         delete d_2_1_Core; | - | 
| 111 |     } never executed: end of block  | 0 | 
| 112 |     if (d_3_0_Core && !d_3_0_Core->refs.deref()) {| TRUE | never evaluated |  | FALSE | never evaluated |  
 | TRUE | never evaluated |  | FALSE | never evaluated |  
  | 0 | 
| 113 |         QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_3_0_Core->context, QOpenGLFunctions_3_0_CoreBackend::versionStatus()); | - | 
| 114 |         delete d_3_0_Core; | - | 
| 115 |     } never executed: end of block  | 0 | 
| 116 |     if (d_3_1_Core && !d_3_1_Core->refs.deref()) {| TRUE | never evaluated |  | FALSE | never evaluated |  
 | TRUE | never evaluated |  | FALSE | never evaluated |  
  | 0 | 
| 117 |         QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_3_1_Core->context, QOpenGLFunctions_3_1_CoreBackend::versionStatus()); | - | 
| 118 |         delete d_3_1_Core; | - | 
| 119 |     } never executed: end of block  | 0 | 
| 120 |     if (d_3_2_Core && !d_3_2_Core->refs.deref()) {| TRUE | never evaluated |  | FALSE | never evaluated |  
 | TRUE | never evaluated |  | FALSE | never evaluated |  
  | 0 | 
| 121 |         QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_3_2_Core->context, QOpenGLFunctions_3_2_CoreBackend::versionStatus()); | - | 
| 122 |         delete d_3_2_Core; | - | 
| 123 |     } never executed: end of block  | 0 | 
| 124 | } never executed: end of block  | 0 | 
| 125 |  | - | 
| 126 | bool QOpenGLFunctions_3_2_Core::initializeOpenGLFunctions() | - | 
| 127 | { | - | 
| 128 |     if ( isInitialized() )| TRUE | never evaluated |  | FALSE | never evaluated |  
  | 0 | 
| 129 |         return true; never executed: return true;  | 0 | 
| 130 |  | - | 
| 131 |     QOpenGLContext* context = QOpenGLContext::currentContext(); | - | 
| 132 |  | - | 
| 133 |      | - | 
| 134 |      | - | 
| 135 |     if (((owningContext() && owningContext() == context) || !owningContext())| TRUE | never evaluated |  | FALSE | never evaluated |  
 | TRUE | never evaluated |  | FALSE | never evaluated |  
 | TRUE | never evaluated |  | FALSE | never evaluated |  
  | 0 | 
| 136 |         && QOpenGLFunctions_3_2_Core::isContextCompatible(context))| TRUE | never evaluated |  | FALSE | never evaluated |  
  | 0 | 
| 137 |     { | - | 
| 138 |          | - | 
| 139 |          | - | 
| 140 |         QOpenGLVersionFunctionsBackend* d = 0; | - | 
| 141 |         d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_0_CoreBackend::versionStatus()); | - | 
| 142 |         if (!d) {| TRUE | never evaluated |  | FALSE | never evaluated |  
  | 0 | 
| 143 |             d = new QOpenGLFunctions_1_0_CoreBackend(context); | - | 
| 144 |             QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_0_CoreBackend::versionStatus(), d); | - | 
| 145 |         } never executed: end of block  | 0 | 
| 146 |         d_1_0_Core = static_cast<QOpenGLFunctions_1_0_CoreBackend*>(d); | - | 
| 147 |         d->refs.ref(); | - | 
| 148 |  | - | 
| 149 |         d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_1_CoreBackend::versionStatus()); | - | 
| 150 |         if (!d) {| TRUE | never evaluated |  | FALSE | never evaluated |  
  | 0 | 
| 151 |             d = new QOpenGLFunctions_1_1_CoreBackend(context); | - | 
| 152 |             QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_1_CoreBackend::versionStatus(), d); | - | 
| 153 |         } never executed: end of block  | 0 | 
| 154 |         d_1_1_Core = static_cast<QOpenGLFunctions_1_1_CoreBackend*>(d); | - | 
| 155 |         d->refs.ref(); | - | 
| 156 |  | - | 
| 157 |         d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_2_CoreBackend::versionStatus()); | - | 
| 158 |         if (!d) {| TRUE | never evaluated |  | FALSE | never evaluated |  
  | 0 | 
| 159 |             d = new QOpenGLFunctions_1_2_CoreBackend(context); | - | 
| 160 |             QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_2_CoreBackend::versionStatus(), d); | - | 
| 161 |         } never executed: end of block  | 0 | 
| 162 |         d_1_2_Core = static_cast<QOpenGLFunctions_1_2_CoreBackend*>(d); | - | 
| 163 |         d->refs.ref(); | - | 
| 164 |  | - | 
| 165 |         d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_3_CoreBackend::versionStatus()); | - | 
| 166 |         if (!d) {| TRUE | never evaluated |  | FALSE | never evaluated |  
  | 0 | 
| 167 |             d = new QOpenGLFunctions_1_3_CoreBackend(context); | - | 
| 168 |             QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_3_CoreBackend::versionStatus(), d); | - | 
| 169 |         } never executed: end of block  | 0 | 
| 170 |         d_1_3_Core = static_cast<QOpenGLFunctions_1_3_CoreBackend*>(d); | - | 
| 171 |         d->refs.ref(); | - | 
| 172 |  | - | 
| 173 |         d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_4_CoreBackend::versionStatus()); | - | 
| 174 |         if (!d) {| TRUE | never evaluated |  | FALSE | never evaluated |  
  | 0 | 
| 175 |             d = new QOpenGLFunctions_1_4_CoreBackend(context); | - | 
| 176 |             QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_4_CoreBackend::versionStatus(), d); | - | 
| 177 |         } never executed: end of block  | 0 | 
| 178 |         d_1_4_Core = static_cast<QOpenGLFunctions_1_4_CoreBackend*>(d); | - | 
| 179 |         d->refs.ref(); | - | 
| 180 |  | - | 
| 181 |         d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_5_CoreBackend::versionStatus()); | - | 
| 182 |         if (!d) {| TRUE | never evaluated |  | FALSE | never evaluated |  
  | 0 | 
| 183 |             d = new QOpenGLFunctions_1_5_CoreBackend(context); | - | 
| 184 |             QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_5_CoreBackend::versionStatus(), d); | - | 
| 185 |         } never executed: end of block  | 0 | 
| 186 |         d_1_5_Core = static_cast<QOpenGLFunctions_1_5_CoreBackend*>(d); | - | 
| 187 |         d->refs.ref(); | - | 
| 188 |  | - | 
| 189 |         d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_2_0_CoreBackend::versionStatus()); | - | 
| 190 |         if (!d) {| TRUE | never evaluated |  | FALSE | never evaluated |  
  | 0 | 
| 191 |             d = new QOpenGLFunctions_2_0_CoreBackend(context); | - | 
| 192 |             QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_2_0_CoreBackend::versionStatus(), d); | - | 
| 193 |         } never executed: end of block  | 0 | 
| 194 |         d_2_0_Core = static_cast<QOpenGLFunctions_2_0_CoreBackend*>(d); | - | 
| 195 |         d->refs.ref(); | - | 
| 196 |  | - | 
| 197 |         d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_2_1_CoreBackend::versionStatus()); | - | 
| 198 |         if (!d) {| TRUE | never evaluated |  | FALSE | never evaluated |  
  | 0 | 
| 199 |             d = new QOpenGLFunctions_2_1_CoreBackend(context); | - | 
| 200 |             QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_2_1_CoreBackend::versionStatus(), d); | - | 
| 201 |         } never executed: end of block  | 0 | 
| 202 |         d_2_1_Core = static_cast<QOpenGLFunctions_2_1_CoreBackend*>(d); | - | 
| 203 |         d->refs.ref(); | - | 
| 204 |  | - | 
| 205 |         d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_0_CoreBackend::versionStatus()); | - | 
| 206 |         if (!d) {| TRUE | never evaluated |  | FALSE | never evaluated |  
  | 0 | 
| 207 |             d = new QOpenGLFunctions_3_0_CoreBackend(context); | - | 
| 208 |             QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_3_0_CoreBackend::versionStatus(), d); | - | 
| 209 |         } never executed: end of block  | 0 | 
| 210 |         d_3_0_Core = static_cast<QOpenGLFunctions_3_0_CoreBackend*>(d); | - | 
| 211 |         d->refs.ref(); | - | 
| 212 |  | - | 
| 213 |         d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_1_CoreBackend::versionStatus()); | - | 
| 214 |         if (!d) {| TRUE | never evaluated |  | FALSE | never evaluated |  
  | 0 | 
| 215 |             d = new QOpenGLFunctions_3_1_CoreBackend(context); | - | 
| 216 |             QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_3_1_CoreBackend::versionStatus(), d); | - | 
| 217 |         } never executed: end of block  | 0 | 
| 218 |         d_3_1_Core = static_cast<QOpenGLFunctions_3_1_CoreBackend*>(d); | - | 
| 219 |         d->refs.ref(); | - | 
| 220 |  | - | 
| 221 |         d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_2_CoreBackend::versionStatus()); | - | 
| 222 |         if (!d) {| TRUE | never evaluated |  | FALSE | never evaluated |  
  | 0 | 
| 223 |             d = new QOpenGLFunctions_3_2_CoreBackend(context); | - | 
| 224 |             QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_3_2_CoreBackend::versionStatus(), d); | - | 
| 225 |         } never executed: end of block  | 0 | 
| 226 |         d_3_2_Core = static_cast<QOpenGLFunctions_3_2_CoreBackend*>(d); | - | 
| 227 |         d->refs.ref(); | - | 
| 228 |  | - | 
| 229 |         QAbstractOpenGLFunctions::initializeOpenGLFunctions(); | - | 
| 230 |     } never executed: end of block  | 0 | 
| 231 |     return isInitialized(); never executed: return isInitialized();  | 0 | 
| 232 | } | - | 
| 233 |  | - | 
| 234 | bool QOpenGLFunctions_3_2_Core::isContextCompatible(QOpenGLContext *context) | - | 
| 235 | { | - | 
| 236 |     Q_ASSERT(context); | - | 
| 237 |     QSurfaceFormat f = context->format(); | - | 
| 238 |     const QPair<int, int> v = qMakePair(f.majorVersion(), f.minorVersion()); | - | 
| 239 |     if (v < qMakePair(3, 2))| TRUE | never evaluated |  | FALSE | never evaluated |  
  | 0 | 
| 240 |         return false; never executed: return false;  | 0 | 
| 241 |  | - | 
| 242 |     return true; never executed: return true;  | 0 | 
| 243 | } | - | 
| 244 |  | - | 
| 245 | QOpenGLVersionProfile QOpenGLFunctions_3_2_Core::versionProfile() | - | 
| 246 | { | - | 
| 247 |     QOpenGLVersionProfile v; | - | 
| 248 |     v.setVersion(3, 2); | - | 
| 249 |     v.setProfile(QSurfaceFormat::CoreProfile); | - | 
| 250 |     return v; never executed: return v;  | 0 | 
| 251 | } | - | 
| 252 |  | - | 
| 253 | QT_END_NAMESPACE | - | 
 |  |  |