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