| Line | Source | Count | 
| 1 |  | - | 
| 2 |  | - | 
| 3 | QOpenGLFunctions_1_5::QOpenGLFunctions_1_5() | - | 
| 4 |  : QAbstractOpenGLFunctions() | - | 
| 5 |  , d_1_0_Core(0) | - | 
| 6 |  , d_1_1_Core(0) | - | 
| 7 |  , d_1_2_Core(0) | - | 
| 8 |  , d_1_3_Core(0) | - | 
| 9 |  , d_1_4_Core(0) | - | 
| 10 |  , d_1_5_Core(0) | - | 
| 11 |  , d_1_0_Deprecated(0) | - | 
| 12 |  , d_1_1_Deprecated(0) | - | 
| 13 |  , d_1_2_Deprecated(0) | - | 
| 14 |  , d_1_3_Deprecated(0) | - | 
| 15 |  , d_1_4_Deprecated(0) | - | 
| 16 | { | - | 
| 17 | } never executed: end of block  | 0 | 
| 18 |  | - | 
| 19 | QOpenGLFunctions_1_5::~QOpenGLFunctions_1_5() | - | 
| 20 | { | - | 
| 21 |     if (d_1_0_Core| TRUE | never evaluated |  | FALSE | never evaluated |  
   && !d_1_0_Core->refs.deref()| TRUE | never evaluated |  | FALSE | never evaluated |  
  ) { | 0 | 
| 22 |         QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_0_Core->context, QOpenGLFunctions_1_0_CoreBackend::versionStatus()); | - | 
| 23 |         delete d_1_0_Core; | - | 
| 24 |     } never executed: end of block  | 0 | 
| 25 |     if (d_1_1_Core| TRUE | never evaluated |  | FALSE | never evaluated |  
   && !d_1_1_Core->refs.deref()| TRUE | never evaluated |  | FALSE | never evaluated |  
  ) { | 0 | 
| 26 |         QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_1_Core->context, QOpenGLFunctions_1_1_CoreBackend::versionStatus()); | - | 
| 27 |         delete d_1_1_Core; | - | 
| 28 |     } never executed: end of block  | 0 | 
| 29 |     if (d_1_2_Core| TRUE | never evaluated |  | FALSE | never evaluated |  
   && !d_1_2_Core->refs.deref()| TRUE | never evaluated |  | FALSE | never evaluated |  
  ) { | 0 | 
| 30 |         QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_2_Core->context, QOpenGLFunctions_1_2_CoreBackend::versionStatus()); | - | 
| 31 |         delete d_1_2_Core; | - | 
| 32 |     } never executed: end of block  | 0 | 
| 33 |     if (d_1_3_Core| TRUE | never evaluated |  | FALSE | never evaluated |  
   && !d_1_3_Core->refs.deref()| TRUE | never evaluated |  | FALSE | never evaluated |  
  ) { | 0 | 
| 34 |         QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_3_Core->context, QOpenGLFunctions_1_3_CoreBackend::versionStatus()); | - | 
| 35 |         delete d_1_3_Core; | - | 
| 36 |     } never executed: end of block  | 0 | 
| 37 |     if (d_1_4_Core| TRUE | never evaluated |  | FALSE | never evaluated |  
   && !d_1_4_Core->refs.deref()| TRUE | never evaluated |  | FALSE | never evaluated |  
  ) { | 0 | 
| 38 |         QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_4_Core->context, QOpenGLFunctions_1_4_CoreBackend::versionStatus()); | - | 
| 39 |         delete d_1_4_Core; | - | 
| 40 |     } never executed: end of block  | 0 | 
| 41 |     if (d_1_5_Core| TRUE | never evaluated |  | FALSE | never evaluated |  
   && !d_1_5_Core->refs.deref()| TRUE | never evaluated |  | FALSE | never evaluated |  
  ) { | 0 | 
| 42 |         QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_5_Core->context, QOpenGLFunctions_1_5_CoreBackend::versionStatus()); | - | 
| 43 |         delete d_1_5_Core; | - | 
| 44 |     } never executed: end of block  | 0 | 
| 45 |     if (d_1_0_Deprecated| TRUE | never evaluated |  | FALSE | never evaluated |  
   && !d_1_0_Deprecated->refs.deref()| TRUE | never evaluated |  | FALSE | never evaluated |  
  ) { | 0 | 
| 46 |         QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_0_Deprecated->context, QOpenGLFunctions_1_0_DeprecatedBackend::versionStatus()); | - | 
| 47 |         delete d_1_0_Deprecated; | - | 
| 48 |     } never executed: end of block  | 0 | 
| 49 |     if (d_1_1_Deprecated| TRUE | never evaluated |  | FALSE | never evaluated |  
   && !d_1_1_Deprecated->refs.deref()| TRUE | never evaluated |  | FALSE | never evaluated |  
  ) { | 0 | 
| 50 |         QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_1_Deprecated->context, QOpenGLFunctions_1_1_DeprecatedBackend::versionStatus()); | - | 
| 51 |         delete d_1_1_Deprecated; | - | 
| 52 |     } never executed: end of block  | 0 | 
| 53 |     if (d_1_2_Deprecated| TRUE | never evaluated |  | FALSE | never evaluated |  
   && !d_1_2_Deprecated->refs.deref()| TRUE | never evaluated |  | FALSE | never evaluated |  
  ) { | 0 | 
| 54 |         QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_2_Deprecated->context, QOpenGLFunctions_1_2_DeprecatedBackend::versionStatus()); | - | 
| 55 |         delete d_1_2_Deprecated; | - | 
| 56 |     } never executed: end of block  | 0 | 
| 57 |     if (d_1_3_Deprecated| TRUE | never evaluated |  | FALSE | never evaluated |  
   && !d_1_3_Deprecated->refs.deref()| TRUE | never evaluated |  | FALSE | never evaluated |  
  ) { | 0 | 
| 58 |         QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_3_Deprecated->context, QOpenGLFunctions_1_3_DeprecatedBackend::versionStatus()); | - | 
| 59 |         delete d_1_3_Deprecated; | - | 
| 60 |     } never executed: end of block  | 0 | 
| 61 |     if (d_1_4_Deprecated| TRUE | never evaluated |  | FALSE | never evaluated |  
   && !d_1_4_Deprecated->refs.deref()| TRUE | never evaluated |  | FALSE | never evaluated |  
  ) { | 0 | 
| 62 |         QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_4_Deprecated->context, QOpenGLFunctions_1_4_DeprecatedBackend::versionStatus()); | - | 
| 63 |         delete d_1_4_Deprecated; | - | 
| 64 |     } never executed: end of block  | 0 | 
| 65 | } never executed: end of block  | 0 | 
| 66 |  | - | 
| 67 | bool QOpenGLFunctions_1_5::initializeOpenGLFunctions() | - | 
| 68 | { | - | 
| 69 |     if ( isInitialized()| TRUE | never evaluated |  | FALSE | never evaluated |  
   ) | 0 | 
| 70 |         return never executed: return true;  true;never executed: return true;  | 0 | 
| 71 |  | - | 
| 72 |     QOpenGLContext* context = QOpenGLContext::currentContext(); | - | 
| 73 |  | - | 
| 74 |  | - | 
| 75 |  | - | 
| 76 |     if (((owningContext()| TRUE | never evaluated |  | FALSE | never evaluated |  
   && owningContext() == context| TRUE | never evaluated |  | FALSE | never evaluated |  
  ) || !owningContext()| TRUE | never evaluated |  | FALSE | never evaluated |  
  ) | 0 | 
| 77 |         && QOpenGLFunctions_1_5::isContextCompatible(context)| TRUE | never evaluated |  | FALSE | never evaluated |  
  ) | 0 | 
| 78 |     { | - | 
| 79 |  | - | 
| 80 |  | - | 
| 81 |         QOpenGLVersionFunctionsBackend* d = 0; | - | 
| 82 |         d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_0_CoreBackend::versionStatus()); | - | 
| 83 |         if (!d| TRUE | never evaluated |  | FALSE | never evaluated |  
  ) { | 0 | 
| 84 |             d = new QOpenGLFunctions_1_0_CoreBackend(context); | - | 
| 85 |             QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_0_CoreBackend::versionStatus(), d); | - | 
| 86 |         } never executed: end of block  | 0 | 
| 87 |         d_1_0_Core = static_cast<QOpenGLFunctions_1_0_CoreBackend*>(d); | - | 
| 88 |         d->refs.ref(); | - | 
| 89 |  | - | 
| 90 |         d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_1_CoreBackend::versionStatus()); | - | 
| 91 |         if (!d| TRUE | never evaluated |  | FALSE | never evaluated |  
  ) { | 0 | 
| 92 |             d = new QOpenGLFunctions_1_1_CoreBackend(context); | - | 
| 93 |             QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_1_CoreBackend::versionStatus(), d); | - | 
| 94 |         } never executed: end of block  | 0 | 
| 95 |         d_1_1_Core = static_cast<QOpenGLFunctions_1_1_CoreBackend*>(d); | - | 
| 96 |         d->refs.ref(); | - | 
| 97 |  | - | 
| 98 |         d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_2_CoreBackend::versionStatus()); | - | 
| 99 |         if (!d| TRUE | never evaluated |  | FALSE | never evaluated |  
  ) { | 0 | 
| 100 |             d = new QOpenGLFunctions_1_2_CoreBackend(context); | - | 
| 101 |             QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_2_CoreBackend::versionStatus(), d); | - | 
| 102 |         } never executed: end of block  | 0 | 
| 103 |         d_1_2_Core = static_cast<QOpenGLFunctions_1_2_CoreBackend*>(d); | - | 
| 104 |         d->refs.ref(); | - | 
| 105 |  | - | 
| 106 |         d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_3_CoreBackend::versionStatus()); | - | 
| 107 |         if (!d| TRUE | never evaluated |  | FALSE | never evaluated |  
  ) { | 0 | 
| 108 |             d = new QOpenGLFunctions_1_3_CoreBackend(context); | - | 
| 109 |             QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_3_CoreBackend::versionStatus(), d); | - | 
| 110 |         } never executed: end of block  | 0 | 
| 111 |         d_1_3_Core = static_cast<QOpenGLFunctions_1_3_CoreBackend*>(d); | - | 
| 112 |         d->refs.ref(); | - | 
| 113 |  | - | 
| 114 |         d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_4_CoreBackend::versionStatus()); | - | 
| 115 |         if (!d| TRUE | never evaluated |  | FALSE | never evaluated |  
  ) { | 0 | 
| 116 |             d = new QOpenGLFunctions_1_4_CoreBackend(context); | - | 
| 117 |             QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_4_CoreBackend::versionStatus(), d); | - | 
| 118 |         } never executed: end of block  | 0 | 
| 119 |         d_1_4_Core = static_cast<QOpenGLFunctions_1_4_CoreBackend*>(d); | - | 
| 120 |         d->refs.ref(); | - | 
| 121 |  | - | 
| 122 |         d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_5_CoreBackend::versionStatus()); | - | 
| 123 |         if (!d| TRUE | never evaluated |  | FALSE | never evaluated |  
  ) { | 0 | 
| 124 |             d = new QOpenGLFunctions_1_5_CoreBackend(context); | - | 
| 125 |             QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_5_CoreBackend::versionStatus(), d); | - | 
| 126 |         } never executed: end of block  | 0 | 
| 127 |         d_1_5_Core = static_cast<QOpenGLFunctions_1_5_CoreBackend*>(d); | - | 
| 128 |         d->refs.ref(); | - | 
| 129 |  | - | 
| 130 |         d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_0_DeprecatedBackend::versionStatus()); | - | 
| 131 |         if (!d| TRUE | never evaluated |  | FALSE | never evaluated |  
  ) { | 0 | 
| 132 |             d = new QOpenGLFunctions_1_0_DeprecatedBackend(context); | - | 
| 133 |             QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_0_DeprecatedBackend::versionStatus(), d); | - | 
| 134 |         } never executed: end of block  | 0 | 
| 135 |         d_1_0_Deprecated = static_cast<QOpenGLFunctions_1_0_DeprecatedBackend*>(d); | - | 
| 136 |         d->refs.ref(); | - | 
| 137 |  | - | 
| 138 |         d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_1_DeprecatedBackend::versionStatus()); | - | 
| 139 |         if (!d| TRUE | never evaluated |  | FALSE | never evaluated |  
  ) { | 0 | 
| 140 |             d = new QOpenGLFunctions_1_1_DeprecatedBackend(context); | - | 
| 141 |             QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_1_DeprecatedBackend::versionStatus(), d); | - | 
| 142 |         } never executed: end of block  | 0 | 
| 143 |         d_1_1_Deprecated = static_cast<QOpenGLFunctions_1_1_DeprecatedBackend*>(d); | - | 
| 144 |         d->refs.ref(); | - | 
| 145 |  | - | 
| 146 |         d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_2_DeprecatedBackend::versionStatus()); | - | 
| 147 |         if (!d| TRUE | never evaluated |  | FALSE | never evaluated |  
  ) { | 0 | 
| 148 |             d = new QOpenGLFunctions_1_2_DeprecatedBackend(context); | - | 
| 149 |             QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_2_DeprecatedBackend::versionStatus(), d); | - | 
| 150 |         } never executed: end of block  | 0 | 
| 151 |         d_1_2_Deprecated = static_cast<QOpenGLFunctions_1_2_DeprecatedBackend*>(d); | - | 
| 152 |         d->refs.ref(); | - | 
| 153 |  | - | 
| 154 |         d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_3_DeprecatedBackend::versionStatus()); | - | 
| 155 |         if (!d| TRUE | never evaluated |  | FALSE | never evaluated |  
  ) { | 0 | 
| 156 |             d = new QOpenGLFunctions_1_3_DeprecatedBackend(context); | - | 
| 157 |             QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_3_DeprecatedBackend::versionStatus(), d); | - | 
| 158 |         } never executed: end of block  | 0 | 
| 159 |         d_1_3_Deprecated = static_cast<QOpenGLFunctions_1_3_DeprecatedBackend*>(d); | - | 
| 160 |         d->refs.ref(); | - | 
| 161 |  | - | 
| 162 |         d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_4_DeprecatedBackend::versionStatus()); | - | 
| 163 |         if (!d| TRUE | never evaluated |  | FALSE | never evaluated |  
  ) { | 0 | 
| 164 |             d = new QOpenGLFunctions_1_4_DeprecatedBackend(context); | - | 
| 165 |             QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_4_DeprecatedBackend::versionStatus(), d); | - | 
| 166 |         } never executed: end of block  | 0 | 
| 167 |         d_1_4_Deprecated = static_cast<QOpenGLFunctions_1_4_DeprecatedBackend*>(d); | - | 
| 168 |         d->refs.ref(); | - | 
| 169 |  | - | 
| 170 |         QAbstractOpenGLFunctions::initializeOpenGLFunctions(); | - | 
| 171 |     } never executed: end of block  | 0 | 
| 172 |     return never executed: return isInitialized();  isInitialized();never executed: return isInitialized();  | 0 | 
| 173 | } | - | 
| 174 |  | - | 
| 175 | bool QOpenGLFunctions_1_5::isContextCompatible(QOpenGLContext *context) | - | 
| 176 | { | - | 
| 177 |     ((!(context)) ? qt_assert("context",__FILE__,236) : qt_noop()); | - | 
| 178 |     QSurfaceFormat f = context->format(); | - | 
| 179 |     const QPair<int, int> v = qMakePair(f.majorVersion(), f.minorVersion()); | - | 
| 180 |     if (v < qMakePair(1, 5)| TRUE | never evaluated |  | FALSE | never evaluated |  
  ) | 0 | 
| 181 |         return never executed: return false;  false;never executed: return false;  | 0 | 
| 182 |  | - | 
| 183 |     if (f.profile() == QSurfaceFormat::CoreProfile| TRUE | never evaluated |  | FALSE | never evaluated |  
  ) | 0 | 
| 184 |         return never executed: return false;  false;never executed: return false;  | 0 | 
| 185 |  | - | 
| 186 |     return never executed: return true;  true;never executed: return true;  | 0 | 
| 187 | } | - | 
| 188 |  | - | 
| 189 | QOpenGLVersionProfile QOpenGLFunctions_1_5::versionProfile() | - | 
| 190 | { | - | 
| 191 |     QOpenGLVersionProfile v; | - | 
| 192 |     v.setVersion(1, 5); | - | 
| 193 |     return never executed: return v;  v;never executed: return v;  | 0 | 
| 194 | } | - | 
| 195 |  | - | 
| 196 |  | - | 
 |  |  |