| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | QOpenGLFunctions_3_2_Core::QOpenGLFunctions_3_2_Core() | - |
| 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 | { | - |
| 17 | } never executed: end of block | 0 |
| 18 | | - |
| 19 | QOpenGLFunctions_3_2_Core::~QOpenGLFunctions_3_2_Core() | - |
| 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_2_0_Core| TRUE | never evaluated | | FALSE | never evaluated |
&& !d_2_0_Core->refs.deref()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 46 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_2_0_Core->context, QOpenGLFunctions_2_0_CoreBackend::versionStatus()); | - |
| 47 | delete d_2_0_Core; | - |
| 48 | } never executed: end of block | 0 |
| 49 | if (d_2_1_Core| TRUE | never evaluated | | FALSE | never evaluated |
&& !d_2_1_Core->refs.deref()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 50 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_2_1_Core->context, QOpenGLFunctions_2_1_CoreBackend::versionStatus()); | - |
| 51 | delete d_2_1_Core; | - |
| 52 | } never executed: end of block | 0 |
| 53 | if (d_3_0_Core| TRUE | never evaluated | | FALSE | never evaluated |
&& !d_3_0_Core->refs.deref()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 54 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_3_0_Core->context, QOpenGLFunctions_3_0_CoreBackend::versionStatus()); | - |
| 55 | delete d_3_0_Core; | - |
| 56 | } never executed: end of block | 0 |
| 57 | if (d_3_1_Core| TRUE | never evaluated | | FALSE | never evaluated |
&& !d_3_1_Core->refs.deref()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 58 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_3_1_Core->context, QOpenGLFunctions_3_1_CoreBackend::versionStatus()); | - |
| 59 | delete d_3_1_Core; | - |
| 60 | } never executed: end of block | 0 |
| 61 | if (d_3_2_Core| TRUE | never evaluated | | FALSE | never evaluated |
&& !d_3_2_Core->refs.deref()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 62 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_3_2_Core->context, QOpenGLFunctions_3_2_CoreBackend::versionStatus()); | - |
| 63 | delete d_3_2_Core; | - |
| 64 | } never executed: end of block | 0 |
| 65 | } never executed: end of block | 0 |
| 66 | | - |
| 67 | bool QOpenGLFunctions_3_2_Core::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_3_2_Core::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_2_0_CoreBackend::versionStatus()); | - |
| 131 | if (!d| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 132 | d = new QOpenGLFunctions_2_0_CoreBackend(context); | - |
| 133 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_2_0_CoreBackend::versionStatus(), d); | - |
| 134 | } never executed: end of block | 0 |
| 135 | d_2_0_Core = static_cast<QOpenGLFunctions_2_0_CoreBackend*>(d); | - |
| 136 | d->refs.ref(); | - |
| 137 | | - |
| 138 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_2_1_CoreBackend::versionStatus()); | - |
| 139 | if (!d| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 140 | d = new QOpenGLFunctions_2_1_CoreBackend(context); | - |
| 141 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_2_1_CoreBackend::versionStatus(), d); | - |
| 142 | } never executed: end of block | 0 |
| 143 | d_2_1_Core = static_cast<QOpenGLFunctions_2_1_CoreBackend*>(d); | - |
| 144 | d->refs.ref(); | - |
| 145 | | - |
| 146 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_0_CoreBackend::versionStatus()); | - |
| 147 | if (!d| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 148 | d = new QOpenGLFunctions_3_0_CoreBackend(context); | - |
| 149 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_3_0_CoreBackend::versionStatus(), d); | - |
| 150 | } never executed: end of block | 0 |
| 151 | d_3_0_Core = static_cast<QOpenGLFunctions_3_0_CoreBackend*>(d); | - |
| 152 | d->refs.ref(); | - |
| 153 | | - |
| 154 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_1_CoreBackend::versionStatus()); | - |
| 155 | if (!d| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 156 | d = new QOpenGLFunctions_3_1_CoreBackend(context); | - |
| 157 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_3_1_CoreBackend::versionStatus(), d); | - |
| 158 | } never executed: end of block | 0 |
| 159 | d_3_1_Core = static_cast<QOpenGLFunctions_3_1_CoreBackend*>(d); | - |
| 160 | d->refs.ref(); | - |
| 161 | | - |
| 162 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_2_CoreBackend::versionStatus()); | - |
| 163 | if (!d| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 164 | d = new QOpenGLFunctions_3_2_CoreBackend(context); | - |
| 165 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_3_2_CoreBackend::versionStatus(), d); | - |
| 166 | } never executed: end of block | 0 |
| 167 | d_3_2_Core = static_cast<QOpenGLFunctions_3_2_CoreBackend*>(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_3_2_Core::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(3, 2)| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 181 | return never executed: return false; false;never executed: return false; | 0 |
| 182 | | - |
| 183 | return never executed: return true; true;never executed: return true; | 0 |
| 184 | } | - |
| 185 | | - |
| 186 | QOpenGLVersionProfile QOpenGLFunctions_3_2_Core::versionProfile() | - |
| 187 | { | - |
| 188 | QOpenGLVersionProfile v; | - |
| 189 | v.setVersion(3, 2); | - |
| 190 | v.setProfile(QSurfaceFormat::CoreProfile); | - |
| 191 | return never executed: return v; v;never executed: return v; | 0 |
| 192 | } | - |
| 193 | | - |
| 194 | | - |
| | |