| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | QOpenGLFunctions_1_2::QOpenGLFunctions_1_2() | - |
| 4 | : QAbstractOpenGLFunctions() | - |
| 5 | , d_1_0_Core(0) | - |
| 6 | , d_1_1_Core(0) | - |
| 7 | , d_1_2_Core(0) | - |
| 8 | , d_1_0_Deprecated(0) | - |
| 9 | , d_1_1_Deprecated(0) | - |
| 10 | , d_1_2_Deprecated(0) | - |
| 11 | { | - |
| 12 | } never executed: end of block | 0 |
| 13 | | - |
| 14 | QOpenGLFunctions_1_2::~QOpenGLFunctions_1_2() | - |
| 15 | { | - |
| 16 | if (d_1_0_Core| TRUE | never evaluated | | FALSE | never evaluated |
&& !d_1_0_Core->refs.deref()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 17 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_0_Core->context, QOpenGLFunctions_1_0_CoreBackend::versionStatus()); | - |
| 18 | delete d_1_0_Core; | - |
| 19 | } never executed: end of block | 0 |
| 20 | if (d_1_1_Core| TRUE | never evaluated | | FALSE | never evaluated |
&& !d_1_1_Core->refs.deref()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 21 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_1_Core->context, QOpenGLFunctions_1_1_CoreBackend::versionStatus()); | - |
| 22 | delete d_1_1_Core; | - |
| 23 | } never executed: end of block | 0 |
| 24 | if (d_1_2_Core| TRUE | never evaluated | | FALSE | never evaluated |
&& !d_1_2_Core->refs.deref()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 25 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_2_Core->context, QOpenGLFunctions_1_2_CoreBackend::versionStatus()); | - |
| 26 | delete d_1_2_Core; | - |
| 27 | } never executed: end of block | 0 |
| 28 | if (d_1_0_Deprecated| TRUE | never evaluated | | FALSE | never evaluated |
&& !d_1_0_Deprecated->refs.deref()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 29 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_0_Deprecated->context, QOpenGLFunctions_1_0_DeprecatedBackend::versionStatus()); | - |
| 30 | delete d_1_0_Deprecated; | - |
| 31 | } never executed: end of block | 0 |
| 32 | if (d_1_1_Deprecated| TRUE | never evaluated | | FALSE | never evaluated |
&& !d_1_1_Deprecated->refs.deref()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 33 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_1_Deprecated->context, QOpenGLFunctions_1_1_DeprecatedBackend::versionStatus()); | - |
| 34 | delete d_1_1_Deprecated; | - |
| 35 | } never executed: end of block | 0 |
| 36 | if (d_1_2_Deprecated| TRUE | never evaluated | | FALSE | never evaluated |
&& !d_1_2_Deprecated->refs.deref()| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 37 | QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend(d_1_2_Deprecated->context, QOpenGLFunctions_1_2_DeprecatedBackend::versionStatus()); | - |
| 38 | delete d_1_2_Deprecated; | - |
| 39 | } never executed: end of block | 0 |
| 40 | } never executed: end of block | 0 |
| 41 | | - |
| 42 | bool QOpenGLFunctions_1_2::initializeOpenGLFunctions() | - |
| 43 | { | - |
| 44 | if ( isInitialized()| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 45 | return never executed: return true; true;never executed: return true; | 0 |
| 46 | | - |
| 47 | QOpenGLContext* context = QOpenGLContext::currentContext(); | - |
| 48 | | - |
| 49 | | - |
| 50 | | - |
| 51 | if (((owningContext()| TRUE | never evaluated | | FALSE | never evaluated |
&& owningContext() == context| TRUE | never evaluated | | FALSE | never evaluated |
) || !owningContext()| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 52 | && QOpenGLFunctions_1_2::isContextCompatible(context)| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 53 | { | - |
| 54 | | - |
| 55 | | - |
| 56 | QOpenGLVersionFunctionsBackend* d = 0; | - |
| 57 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_0_CoreBackend::versionStatus()); | - |
| 58 | if (!d| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 59 | d = new QOpenGLFunctions_1_0_CoreBackend(context); | - |
| 60 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_0_CoreBackend::versionStatus(), d); | - |
| 61 | } never executed: end of block | 0 |
| 62 | d_1_0_Core = static_cast<QOpenGLFunctions_1_0_CoreBackend*>(d); | - |
| 63 | d->refs.ref(); | - |
| 64 | | - |
| 65 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_1_CoreBackend::versionStatus()); | - |
| 66 | if (!d| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 67 | d = new QOpenGLFunctions_1_1_CoreBackend(context); | - |
| 68 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_1_CoreBackend::versionStatus(), d); | - |
| 69 | } never executed: end of block | 0 |
| 70 | d_1_1_Core = static_cast<QOpenGLFunctions_1_1_CoreBackend*>(d); | - |
| 71 | d->refs.ref(); | - |
| 72 | | - |
| 73 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_2_CoreBackend::versionStatus()); | - |
| 74 | if (!d| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 75 | d = new QOpenGLFunctions_1_2_CoreBackend(context); | - |
| 76 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_2_CoreBackend::versionStatus(), d); | - |
| 77 | } never executed: end of block | 0 |
| 78 | d_1_2_Core = static_cast<QOpenGLFunctions_1_2_CoreBackend*>(d); | - |
| 79 | d->refs.ref(); | - |
| 80 | | - |
| 81 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_0_DeprecatedBackend::versionStatus()); | - |
| 82 | if (!d| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 83 | d = new QOpenGLFunctions_1_0_DeprecatedBackend(context); | - |
| 84 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_0_DeprecatedBackend::versionStatus(), d); | - |
| 85 | } never executed: end of block | 0 |
| 86 | d_1_0_Deprecated = static_cast<QOpenGLFunctions_1_0_DeprecatedBackend*>(d); | - |
| 87 | d->refs.ref(); | - |
| 88 | | - |
| 89 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_1_DeprecatedBackend::versionStatus()); | - |
| 90 | if (!d| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 91 | d = new QOpenGLFunctions_1_1_DeprecatedBackend(context); | - |
| 92 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_1_DeprecatedBackend::versionStatus(), d); | - |
| 93 | } never executed: end of block | 0 |
| 94 | d_1_1_Deprecated = static_cast<QOpenGLFunctions_1_1_DeprecatedBackend*>(d); | - |
| 95 | d->refs.ref(); | - |
| 96 | | - |
| 97 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_2_DeprecatedBackend::versionStatus()); | - |
| 98 | if (!d| TRUE | never evaluated | | FALSE | never evaluated |
) { | 0 |
| 99 | d = new QOpenGLFunctions_1_2_DeprecatedBackend(context); | - |
| 100 | QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_2_DeprecatedBackend::versionStatus(), d); | - |
| 101 | } never executed: end of block | 0 |
| 102 | d_1_2_Deprecated = static_cast<QOpenGLFunctions_1_2_DeprecatedBackend*>(d); | - |
| 103 | d->refs.ref(); | - |
| 104 | | - |
| 105 | QAbstractOpenGLFunctions::initializeOpenGLFunctions(); | - |
| 106 | } never executed: end of block | 0 |
| 107 | return never executed: return isInitialized(); isInitialized();never executed: return isInitialized(); | 0 |
| 108 | } | - |
| 109 | | - |
| 110 | bool QOpenGLFunctions_1_2::isContextCompatible(QOpenGLContext *context) | - |
| 111 | { | - |
| 112 | ((!(context)) ? qt_assert("context",__FILE__,171) : qt_noop()); | - |
| 113 | QSurfaceFormat f = context->format(); | - |
| 114 | const QPair<int, int> v = qMakePair(f.majorVersion(), f.minorVersion()); | - |
| 115 | if (v < qMakePair(1, 2)| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 116 | return never executed: return false; false;never executed: return false; | 0 |
| 117 | | - |
| 118 | if (f.profile() == QSurfaceFormat::CoreProfile| TRUE | never evaluated | | FALSE | never evaluated |
) | 0 |
| 119 | return never executed: return false; false;never executed: return false; | 0 |
| 120 | | - |
| 121 | return never executed: return true; true;never executed: return true; | 0 |
| 122 | } | - |
| 123 | | - |
| 124 | QOpenGLVersionProfile QOpenGLFunctions_1_2::versionProfile() | - |
| 125 | { | - |
| 126 | QOpenGLVersionProfile v; | - |
| 127 | v.setVersion(1, 2); | - |
| 128 | return never executed: return v; v;never executed: return v; | 0 |
| 129 | } | - |
| 130 | | - |
| 131 | | - |
| | |