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