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