| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | QOpenGLFunctions_4_2_Compatibility::QOpenGLFunctions_4_2_Compatibility() | - |
| 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 | , d_3_2_Core(0) | - |
| 16 | , d_3_3_Core(0) | - |
| 17 | , d_4_0_Core(0) | - |
| 18 | , d_4_1_Core(0) | - |
| 19 | , d_4_2_Core(0) | - |
| 20 | , d_1_0_Deprecated(0) | - |
| 21 | , d_1_1_Deprecated(0) | - |
| 22 | , d_1_2_Deprecated(0) | - |
| 23 | , d_1_3_Deprecated(0) | - |
| 24 | , d_1_4_Deprecated(0) | - |
| 25 | , m_reserved_2_0_Deprecated(nullptr) | - |
| 26 | , d_3_3_Deprecated(0) | - |
| 27 | { | - |
| 28 | } never executed: end of block | 0 |
| 29 | | - |
| 30 | QOpenGLFunctions_4_2_Compatibility::~QOpenGLFunctions_4_2_Compatibility() | - |
| 31 | { | - |
| 32 | if (d_1_0_Core| TRUE | never evaluated | | FALSE | never evaluated |
&& !d_1_0_Core->refs.deref()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 33 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_0_Core->context, QOpenGLFunctions_1_0_CoreBackend::versionStatus()); | - |
| 34 | delete d_1_0_Core; | - |
| 35 | } never executed: end of block | 0 |
| 36 | if (d_1_1_Core| TRUE | never evaluated | | FALSE | never evaluated |
&& !d_1_1_Core->refs.deref()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 37 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_1_Core->context, QOpenGLFunctions_1_1_CoreBackend::versionStatus()); | - |
| 38 | delete d_1_1_Core; | - |
| 39 | } never executed: end of block | 0 |
| 40 | if (d_1_2_Core| TRUE | never evaluated | | FALSE | never evaluated |
&& !d_1_2_Core->refs.deref()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 41 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_2_Core->context, QOpenGLFunctions_1_2_CoreBackend::versionStatus()); | - |
| 42 | delete d_1_2_Core; | - |
| 43 | } never executed: end of block | 0 |
| 44 | if (d_1_3_Core| TRUE | never evaluated | | FALSE | never evaluated |
&& !d_1_3_Core->refs.deref()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 45 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_3_Core->context, QOpenGLFunctions_1_3_CoreBackend::versionStatus()); | - |
| 46 | delete d_1_3_Core; | - |
| 47 | } never executed: end of block | 0 |
| 48 | if (d_1_4_Core| TRUE | never evaluated | | FALSE | never evaluated |
&& !d_1_4_Core->refs.deref()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 49 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_4_Core->context, QOpenGLFunctions_1_4_CoreBackend::versionStatus()); | - |
| 50 | delete d_1_4_Core; | - |
| 51 | } never executed: end of block | 0 |
| 52 | if (d_1_5_Core| TRUE | never evaluated | | FALSE | never evaluated |
&& !d_1_5_Core->refs.deref()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 53 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_5_Core->context, QOpenGLFunctions_1_5_CoreBackend::versionStatus()); | - |
| 54 | delete d_1_5_Core; | - |
| 55 | } never executed: end of block | 0 |
| 56 | if (d_2_0_Core| TRUE | never evaluated | | FALSE | never evaluated |
&& !d_2_0_Core->refs.deref()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 57 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_2_0_Core->context, QOpenGLFunctions_2_0_CoreBackend::versionStatus()); | - |
| 58 | delete d_2_0_Core; | - |
| 59 | } never executed: end of block | 0 |
| 60 | if (d_2_1_Core| TRUE | never evaluated | | FALSE | never evaluated |
&& !d_2_1_Core->refs.deref()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 61 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_2_1_Core->context, QOpenGLFunctions_2_1_CoreBackend::versionStatus()); | - |
| 62 | delete d_2_1_Core; | - |
| 63 | } never executed: end of block | 0 |
| 64 | if (d_3_0_Core| TRUE | never evaluated | | FALSE | never evaluated |
&& !d_3_0_Core->refs.deref()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 65 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_3_0_Core->context, QOpenGLFunctions_3_0_CoreBackend::versionStatus()); | - |
| 66 | delete d_3_0_Core; | - |
| 67 | } never executed: end of block | 0 |
| 68 | if (d_3_1_Core| TRUE | never evaluated | | FALSE | never evaluated |
&& !d_3_1_Core->refs.deref()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 69 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_3_1_Core->context, QOpenGLFunctions_3_1_CoreBackend::versionStatus()); | - |
| 70 | delete d_3_1_Core; | - |
| 71 | } never executed: end of block | 0 |
| 72 | if (d_3_2_Core| TRUE | never evaluated | | FALSE | never evaluated |
&& !d_3_2_Core->refs.deref()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 73 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_3_2_Core->context, QOpenGLFunctions_3_2_CoreBackend::versionStatus()); | - |
| 74 | delete d_3_2_Core; | - |
| 75 | } never executed: end of block | 0 |
| 76 | if (d_3_3_Core| TRUE | never evaluated | | FALSE | never evaluated |
&& !d_3_3_Core->refs.deref()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 77 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_3_3_Core->context, QOpenGLFunctions_3_3_CoreBackend::versionStatus()); | - |
| 78 | delete d_3_3_Core; | - |
| 79 | } never executed: end of block | 0 |
| 80 | if (d_4_0_Core| TRUE | never evaluated | | FALSE | never evaluated |
&& !d_4_0_Core->refs.deref()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 81 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_4_0_Core->context, QOpenGLFunctions_4_0_CoreBackend::versionStatus()); | - |
| 82 | delete d_4_0_Core; | - |
| 83 | } never executed: end of block | 0 |
| 84 | if (d_4_1_Core| TRUE | never evaluated | | FALSE | never evaluated |
&& !d_4_1_Core->refs.deref()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 85 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_4_1_Core->context, QOpenGLFunctions_4_1_CoreBackend::versionStatus()); | - |
| 86 | delete d_4_1_Core; | - |
| 87 | } never executed: end of block | 0 |
| 88 | if (d_4_2_Core| TRUE | never evaluated | | FALSE | never evaluated |
&& !d_4_2_Core->refs.deref()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 89 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_4_2_Core->context, QOpenGLFunctions_4_2_CoreBackend::versionStatus()); | - |
| 90 | delete d_4_2_Core; | - |
| 91 | } never executed: end of block | 0 |
| 92 | if (d_1_0_Deprecated| TRUE | never evaluated | | FALSE | never evaluated |
&& !d_1_0_Deprecated->refs.deref()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 93 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_0_Deprecated->context, QOpenGLFunctions_1_0_DeprecatedBackend::versionStatus()); | - |
| 94 | delete d_1_0_Deprecated; | - |
| 95 | } never executed: end of block | 0 |
| 96 | if (d_1_1_Deprecated| TRUE | never evaluated | | FALSE | never evaluated |
&& !d_1_1_Deprecated->refs.deref()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 97 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_1_Deprecated->context, QOpenGLFunctions_1_1_DeprecatedBackend::versionStatus()); | - |
| 98 | delete d_1_1_Deprecated; | - |
| 99 | } never executed: end of block | 0 |
| 100 | if (d_1_2_Deprecated| TRUE | never evaluated | | FALSE | never evaluated |
&& !d_1_2_Deprecated->refs.deref()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 101 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_2_Deprecated->context, QOpenGLFunctions_1_2_DeprecatedBackend::versionStatus()); | - |
| 102 | delete d_1_2_Deprecated; | - |
| 103 | } never executed: end of block | 0 |
| 104 | if (d_1_3_Deprecated| TRUE | never evaluated | | FALSE | never evaluated |
&& !d_1_3_Deprecated->refs.deref()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 105 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_3_Deprecated->context, QOpenGLFunctions_1_3_DeprecatedBackend::versionStatus()); | - |
| 106 | delete d_1_3_Deprecated; | - |
| 107 | } never executed: end of block | 0 |
| 108 | if (d_1_4_Deprecated| TRUE | never evaluated | | FALSE | never evaluated |
&& !d_1_4_Deprecated->refs.deref()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 109 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_4_Deprecated->context, QOpenGLFunctions_1_4_DeprecatedBackend::versionStatus()); | - |
| 110 | delete d_1_4_Deprecated; | - |
| 111 | } never executed: end of block | 0 |
| 112 | if (d_3_3_Deprecated| TRUE | never evaluated | | FALSE | never evaluated |
&& !d_3_3_Deprecated->refs.deref()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 113 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_3_3_Deprecated->context, QOpenGLFunctions_3_3_DeprecatedBackend::versionStatus()); | - |
| 114 | delete d_3_3_Deprecated; | - |
| 115 | } never executed: end of block | 0 |
| 116 | } never executed: end of block | 0 |
| 117 | | - |
| 118 | bool QOpenGLFunctions_4_2_Compatibility::initializeOpenGLFunctions() | - |
| 119 | { | - |
| 120 | if ( isInitialized()| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 121 | return never executed: return true; true;never executed: return true; | 0 |
| 122 | | - |
| 123 | QOpenGLContext* context = QOpenGLContext::currentContext(); | - |
| 124 | | - |
| 125 | | - |
| 126 | | - |
| 127 | if (((owningContext()| TRUE | never evaluated | | FALSE | never evaluated |
&& owningContext() == context| TRUE | never evaluated | | FALSE | never evaluated |
) || !owningContext()| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 128 | && QOpenGLFunctions_4_2_Compatibility::isContextCompatible(context)| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 129 | { | - |
| 130 | | - |
| 131 | | - |
| 132 | QOpenGLVersionFunctionsBackend* d = 0; | - |
| 133 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_0_CoreBackend::versionStatus()); | - |
| 134 | if (!d| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 135 | d = new QOpenGLFunctions_1_0_CoreBackend(context); | - |
| 136 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_0_CoreBackend::versionStatus(), d); | - |
| 137 | } never executed: end of block | 0 |
| 138 | d_1_0_Core = static_cast<QOpenGLFunctions_1_0_CoreBackend*>(d); | - |
| 139 | d->refs.ref(); | - |
| 140 | | - |
| 141 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_1_CoreBackend::versionStatus()); | - |
| 142 | if (!d| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 143 | d = new QOpenGLFunctions_1_1_CoreBackend(context); | - |
| 144 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_1_CoreBackend::versionStatus(), d); | - |
| 145 | } never executed: end of block | 0 |
| 146 | d_1_1_Core = static_cast<QOpenGLFunctions_1_1_CoreBackend*>(d); | - |
| 147 | d->refs.ref(); | - |
| 148 | | - |
| 149 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_2_CoreBackend::versionStatus()); | - |
| 150 | if (!d| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 151 | d = new QOpenGLFunctions_1_2_CoreBackend(context); | - |
| 152 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_2_CoreBackend::versionStatus(), d); | - |
| 153 | } never executed: end of block | 0 |
| 154 | d_1_2_Core = static_cast<QOpenGLFunctions_1_2_CoreBackend*>(d); | - |
| 155 | d->refs.ref(); | - |
| 156 | | - |
| 157 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_3_CoreBackend::versionStatus()); | - |
| 158 | if (!d| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 159 | d = new QOpenGLFunctions_1_3_CoreBackend(context); | - |
| 160 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_3_CoreBackend::versionStatus(), d); | - |
| 161 | } never executed: end of block | 0 |
| 162 | d_1_3_Core = static_cast<QOpenGLFunctions_1_3_CoreBackend*>(d); | - |
| 163 | d->refs.ref(); | - |
| 164 | | - |
| 165 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_4_CoreBackend::versionStatus()); | - |
| 166 | if (!d| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 167 | d = new QOpenGLFunctions_1_4_CoreBackend(context); | - |
| 168 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_4_CoreBackend::versionStatus(), d); | - |
| 169 | } never executed: end of block | 0 |
| 170 | d_1_4_Core = static_cast<QOpenGLFunctions_1_4_CoreBackend*>(d); | - |
| 171 | d->refs.ref(); | - |
| 172 | | - |
| 173 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_5_CoreBackend::versionStatus()); | - |
| 174 | if (!d| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 175 | d = new QOpenGLFunctions_1_5_CoreBackend(context); | - |
| 176 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_5_CoreBackend::versionStatus(), d); | - |
| 177 | } never executed: end of block | 0 |
| 178 | d_1_5_Core = static_cast<QOpenGLFunctions_1_5_CoreBackend*>(d); | - |
| 179 | d->refs.ref(); | - |
| 180 | | - |
| 181 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_2_0_CoreBackend::versionStatus()); | - |
| 182 | if (!d| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 183 | d = new QOpenGLFunctions_2_0_CoreBackend(context); | - |
| 184 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_2_0_CoreBackend::versionStatus(), d); | - |
| 185 | } never executed: end of block | 0 |
| 186 | d_2_0_Core = static_cast<QOpenGLFunctions_2_0_CoreBackend*>(d); | - |
| 187 | d->refs.ref(); | - |
| 188 | | - |
| 189 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_2_1_CoreBackend::versionStatus()); | - |
| 190 | if (!d| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 191 | d = new QOpenGLFunctions_2_1_CoreBackend(context); | - |
| 192 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_2_1_CoreBackend::versionStatus(), d); | - |
| 193 | } never executed: end of block | 0 |
| 194 | d_2_1_Core = static_cast<QOpenGLFunctions_2_1_CoreBackend*>(d); | - |
| 195 | d->refs.ref(); | - |
| 196 | | - |
| 197 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_0_CoreBackend::versionStatus()); | - |
| 198 | if (!d| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 199 | d = new QOpenGLFunctions_3_0_CoreBackend(context); | - |
| 200 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_3_0_CoreBackend::versionStatus(), d); | - |
| 201 | } never executed: end of block | 0 |
| 202 | d_3_0_Core = static_cast<QOpenGLFunctions_3_0_CoreBackend*>(d); | - |
| 203 | d->refs.ref(); | - |
| 204 | | - |
| 205 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_1_CoreBackend::versionStatus()); | - |
| 206 | if (!d| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 207 | d = new QOpenGLFunctions_3_1_CoreBackend(context); | - |
| 208 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_3_1_CoreBackend::versionStatus(), d); | - |
| 209 | } never executed: end of block | 0 |
| 210 | d_3_1_Core = static_cast<QOpenGLFunctions_3_1_CoreBackend*>(d); | - |
| 211 | d->refs.ref(); | - |
| 212 | | - |
| 213 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_2_CoreBackend::versionStatus()); | - |
| 214 | if (!d| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 215 | d = new QOpenGLFunctions_3_2_CoreBackend(context); | - |
| 216 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_3_2_CoreBackend::versionStatus(), d); | - |
| 217 | } never executed: end of block | 0 |
| 218 | d_3_2_Core = static_cast<QOpenGLFunctions_3_2_CoreBackend*>(d); | - |
| 219 | d->refs.ref(); | - |
| 220 | | - |
| 221 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_3_CoreBackend::versionStatus()); | - |
| 222 | if (!d| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 223 | d = new QOpenGLFunctions_3_3_CoreBackend(context); | - |
| 224 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_3_3_CoreBackend::versionStatus(), d); | - |
| 225 | } never executed: end of block | 0 |
| 226 | d_3_3_Core = static_cast<QOpenGLFunctions_3_3_CoreBackend*>(d); | - |
| 227 | d->refs.ref(); | - |
| 228 | | - |
| 229 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_4_0_CoreBackend::versionStatus()); | - |
| 230 | if (!d| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 231 | d = new QOpenGLFunctions_4_0_CoreBackend(context); | - |
| 232 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_4_0_CoreBackend::versionStatus(), d); | - |
| 233 | } never executed: end of block | 0 |
| 234 | d_4_0_Core = static_cast<QOpenGLFunctions_4_0_CoreBackend*>(d); | - |
| 235 | d->refs.ref(); | - |
| 236 | | - |
| 237 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_4_1_CoreBackend::versionStatus()); | - |
| 238 | if (!d| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 239 | d = new QOpenGLFunctions_4_1_CoreBackend(context); | - |
| 240 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_4_1_CoreBackend::versionStatus(), d); | - |
| 241 | } never executed: end of block | 0 |
| 242 | d_4_1_Core = static_cast<QOpenGLFunctions_4_1_CoreBackend*>(d); | - |
| 243 | d->refs.ref(); | - |
| 244 | | - |
| 245 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_4_2_CoreBackend::versionStatus()); | - |
| 246 | if (!d| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 247 | d = new QOpenGLFunctions_4_2_CoreBackend(context); | - |
| 248 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_4_2_CoreBackend::versionStatus(), d); | - |
| 249 | } never executed: end of block | 0 |
| 250 | d_4_2_Core = static_cast<QOpenGLFunctions_4_2_CoreBackend*>(d); | - |
| 251 | d->refs.ref(); | - |
| 252 | | - |
| 253 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_0_DeprecatedBackend::versionStatus()); | - |
| 254 | if (!d| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 255 | d = new QOpenGLFunctions_1_0_DeprecatedBackend(context); | - |
| 256 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_0_DeprecatedBackend::versionStatus(), d); | - |
| 257 | } never executed: end of block | 0 |
| 258 | d_1_0_Deprecated = static_cast<QOpenGLFunctions_1_0_DeprecatedBackend*>(d); | - |
| 259 | d->refs.ref(); | - |
| 260 | | - |
| 261 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_1_DeprecatedBackend::versionStatus()); | - |
| 262 | if (!d| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 263 | d = new QOpenGLFunctions_1_1_DeprecatedBackend(context); | - |
| 264 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_1_DeprecatedBackend::versionStatus(), d); | - |
| 265 | } never executed: end of block | 0 |
| 266 | d_1_1_Deprecated = static_cast<QOpenGLFunctions_1_1_DeprecatedBackend*>(d); | - |
| 267 | d->refs.ref(); | - |
| 268 | | - |
| 269 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_2_DeprecatedBackend::versionStatus()); | - |
| 270 | if (!d| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 271 | d = new QOpenGLFunctions_1_2_DeprecatedBackend(context); | - |
| 272 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_2_DeprecatedBackend::versionStatus(), d); | - |
| 273 | } never executed: end of block | 0 |
| 274 | d_1_2_Deprecated = static_cast<QOpenGLFunctions_1_2_DeprecatedBackend*>(d); | - |
| 275 | d->refs.ref(); | - |
| 276 | | - |
| 277 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_3_DeprecatedBackend::versionStatus()); | - |
| 278 | if (!d| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 279 | d = new QOpenGLFunctions_1_3_DeprecatedBackend(context); | - |
| 280 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_3_DeprecatedBackend::versionStatus(), d); | - |
| 281 | } never executed: end of block | 0 |
| 282 | d_1_3_Deprecated = static_cast<QOpenGLFunctions_1_3_DeprecatedBackend*>(d); | - |
| 283 | d->refs.ref(); | - |
| 284 | | - |
| 285 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_4_DeprecatedBackend::versionStatus()); | - |
| 286 | if (!d| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 287 | d = new QOpenGLFunctions_1_4_DeprecatedBackend(context); | - |
| 288 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_4_DeprecatedBackend::versionStatus(), d); | - |
| 289 | } never executed: end of block | 0 |
| 290 | d_1_4_Deprecated = static_cast<QOpenGLFunctions_1_4_DeprecatedBackend*>(d); | - |
| 291 | d->refs.ref(); | - |
| 292 | | - |
| 293 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_3_DeprecatedBackend::versionStatus()); | - |
| 294 | if (!d| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 295 | d = new QOpenGLFunctions_3_3_DeprecatedBackend(context); | - |
| 296 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_3_3_DeprecatedBackend::versionStatus(), d); | - |
| 297 | } never executed: end of block | 0 |
| 298 | d_3_3_Deprecated = static_cast<QOpenGLFunctions_3_3_DeprecatedBackend*>(d); | - |
| 299 | d->refs.ref(); | - |
| 300 | | - |
| 301 | QAbstractOpenGLFunctions::initializeOpenGLFunctions(); | - |
| 302 | } never executed: end of block | 0 |
| 303 | return never executed: return isInitialized(); isInitialized();never executed: return isInitialized(); | 0 |
| 304 | } | - |
| 305 | | - |
| 306 | bool QOpenGLFunctions_4_2_Compatibility::isContextCompatible(QOpenGLContext *context) | - |
| 307 | { | - |
| 308 | ((!(context)) ? qt_assert("context",__FILE__,367) : qt_noop()); | - |
| 309 | QSurfaceFormat f = context->format(); | - |
| 310 | const QPair<int, int> v = qMakePair(f.majorVersion(), f.minorVersion()); | - |
| 311 | if (v < qMakePair(4, 2)| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 312 | return never executed: return false; false;never executed: return false; | 0 |
| 313 | | - |
| 314 | if (f.profile() == QSurfaceFormat::CoreProfile| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 315 | return never executed: return false; false;never executed: return false; | 0 |
| 316 | | - |
| 317 | return never executed: return true; true;never executed: return true; | 0 |
| 318 | } | - |
| 319 | | - |
| 320 | QOpenGLVersionProfile QOpenGLFunctions_4_2_Compatibility::versionProfile() | - |
| 321 | { | - |
| 322 | QOpenGLVersionProfile v; | - |
| 323 | v.setVersion(4, 2); | - |
| 324 | v.setProfile(QSurfaceFormat::CompatibilityProfile); | - |
| 325 | return never executed: return v; v;never executed: return v; | 0 |
| 326 | } | - |
| 327 | | - |
| 328 | | - |
| | |