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