| Absolute File Name: | /home/qt/qt5_coco/qt5/qtbase/src/gui/opengl/qopenglfunctions_4_4_compatibility.cpp |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||||||||||||||
| 2 | - | |||||||||||||||||||
| 3 | QOpenGLFunctions_4_4_Compatibility::QOpenGLFunctions_4_4_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_1_0_Deprecated(0) | - | ||||||||||||||||||
| 23 | , d_1_1_Deprecated(0) | - | ||||||||||||||||||
| 24 | , d_1_2_Deprecated(0) | - | ||||||||||||||||||
| 25 | , d_1_3_Deprecated(0) | - | ||||||||||||||||||
| 26 | , d_1_4_Deprecated(0) | - | ||||||||||||||||||
| 27 | , d_3_3_Deprecated(0) | - | ||||||||||||||||||
| 28 | { | - | ||||||||||||||||||
| 29 | } | - | ||||||||||||||||||
| 30 | - | |||||||||||||||||||
| 31 | QOpenGLFunctions_4_4_Compatibility::~QOpenGLFunctions_4_4_Compatibility() | - | ||||||||||||||||||
| 32 | { | - | ||||||||||||||||||
| 33 | if (d_1_0_Core&& !
| 0 | ||||||||||||||||||
| 34 | d_1_0_Core->refs.deref()) { never executed: d_1_0_Core->refs.deref(); | 0 | ||||||||||||||||||
| QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend( never executed: d_1_0_Core->refs.deref();never executed: ();d_1_0_Core->refs.deref();never executed: d_1_0_Core->refs.deref(); | ||||||||||||||||||||
| 35 | ((!(d_1_0_Core->contextrefs.load())) ? qt_assert("d_1_0_Core->refs.load()",QOpenGLFunctions_1_0_CoreBackend::versionStatus__FILE__,100) : qt_noop()); | - | ||||||||||||||||||
| 36 | delete d_1_0_Core; | 0 | ||||||||||||||||||
}if (d_1_1_Core&& !
| ||||||||||||||||||||
| 37 | d_1_1_Core->refs.deref()) { never executed: d_1_1_Core->refs.deref(); | 0 | ||||||||||||||||||
| QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend( never executed: d_1_1_Core->refs.deref();never executed: ();d_1_1_Core->refs.deref();never executed: d_1_1_Core->refs.deref(); | ||||||||||||||||||||
| 38 | ((!(d_1_1_Core->contextrefs.load())) ? qt_assert("d_1_1_Core->refs.load()",QOpenGLFunctions_1_1_CoreBackend::versionStatus__FILE__,103) : qt_noop()); | - | ||||||||||||||||||
| 39 | delete d_1_1_Core; | 0 | ||||||||||||||||||
}if (d_1_2_Core&& !
| ||||||||||||||||||||
| 40 | d_1_2_Core->refs.deref()) { never executed: d_1_2_Core->refs.deref(); | 0 | ||||||||||||||||||
| QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend( never executed: d_1_2_Core->refs.deref();never executed: ();d_1_2_Core->refs.deref();never executed: d_1_2_Core->refs.deref(); | ||||||||||||||||||||
| 41 | ((!(d_1_2_Core->contextrefs.load())) ? qt_assert("d_1_2_Core->refs.load()",QOpenGLFunctions_1_2_CoreBackend::versionStatus__FILE__,106) : qt_noop()); | - | ||||||||||||||||||
| 42 | delete d_1_2_Core; | 0 | ||||||||||||||||||
}if (d_1_3_Core&& !
| ||||||||||||||||||||
| 43 | d_1_3_Core->refs.deref()) { never executed: d_1_3_Core->refs.deref(); | 0 | ||||||||||||||||||
| QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend( never executed: d_1_3_Core->refs.deref();never executed: ();d_1_3_Core->refs.deref();never executed: d_1_3_Core->refs.deref(); | ||||||||||||||||||||
| 44 | ((!(d_1_3_Core->contextrefs.load())) ? qt_assert("d_1_3_Core->refs.load()",QOpenGLFunctions_1_3_CoreBackend::versionStatus__FILE__,109) : qt_noop()); | - | ||||||||||||||||||
| 45 | delete d_1_3_Core; | 0 | ||||||||||||||||||
}if (d_1_4_Core&& !
| ||||||||||||||||||||
| 46 | d_1_4_Core->refs.deref()) { never executed: d_1_4_Core->refs.deref(); | 0 | ||||||||||||||||||
| QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend( never executed: d_1_4_Core->refs.deref();never executed: ();d_1_4_Core->refs.deref();never executed: d_1_4_Core->refs.deref(); | ||||||||||||||||||||
| 47 | ((!(d_1_4_Core->contextrefs.load())) ? qt_assert("d_1_4_Core->refs.load()",QOpenGLFunctions_1_4_CoreBackend::versionStatus__FILE__,112) : qt_noop()); | - | ||||||||||||||||||
| 48 | delete d_1_4_Core; | 0 | ||||||||||||||||||
}if (d_1_5_Core&& !
| ||||||||||||||||||||
| 49 | d_1_5_Core->refs.deref()) { never executed: d_1_5_Core->refs.deref(); | 0 | ||||||||||||||||||
| QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend( never executed: d_1_5_Core->refs.deref();never executed: ();d_1_5_Core->refs.deref();never executed: d_1_5_Core->refs.deref(); | ||||||||||||||||||||
| 50 | ((!(d_1_5_Core->contextrefs.load())) ? qt_assert("d_1_5_Core->refs.load()",QOpenGLFunctions_1_5_CoreBackend::versionStatus__FILE__,115) : qt_noop()); | - | ||||||||||||||||||
| 51 | delete d_1_5_Core; | 0 | ||||||||||||||||||
}if (d_2_0_Core&& !
| ||||||||||||||||||||
| 52 | d_2_0_Core->refs.deref()) { never executed: d_2_0_Core->refs.deref(); | 0 | ||||||||||||||||||
| QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend( never executed: d_2_0_Core->refs.deref();never executed: ();d_2_0_Core->refs.deref();never executed: d_2_0_Core->refs.deref(); | ||||||||||||||||||||
| 53 | ((!(d_2_0_Core->contextrefs.load())) ? qt_assert("d_2_0_Core->refs.load()",QOpenGLFunctions_2_0_CoreBackend::versionStatus__FILE__,118) : qt_noop()); | - | ||||||||||||||||||
| 54 | delete d_2_0_Core; | 0 | ||||||||||||||||||
}if (d_2_1_Core&& !
| ||||||||||||||||||||
| 55 | d_2_1_Core->refs.deref()) { never executed: d_2_1_Core->refs.deref(); | 0 | ||||||||||||||||||
| QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend( never executed: d_2_1_Core->refs.deref();never executed: ();d_2_1_Core->refs.deref();never executed: d_2_1_Core->refs.deref(); | ||||||||||||||||||||
| 56 | ((!(d_2_1_Core->contextrefs.load())) ? qt_assert("d_2_1_Core->refs.load()",QOpenGLFunctions_2_1_CoreBackend::versionStatus__FILE__,121) : qt_noop()); | - | ||||||||||||||||||
| 57 | delete d_2_1_Core; | 0 | ||||||||||||||||||
}if (d_3_0_Core&& !
| ||||||||||||||||||||
| 58 | d_3_0_Core->refs.deref()) { never executed: d_3_0_Core->refs.deref(); | 0 | ||||||||||||||||||
| QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend( never executed: d_3_0_Core->refs.deref();never executed: ();d_3_0_Core->refs.deref();never executed: d_3_0_Core->refs.deref(); | ||||||||||||||||||||
| 59 | ((!(d_3_0_Core->contextrefs.load())) ? qt_assert("d_3_0_Core->refs.load()",QOpenGLFunctions_3_0_CoreBackend::versionStatus__FILE__,124) : qt_noop()); | - | ||||||||||||||||||
| 60 | delete d_3_0_Core; | 0 | ||||||||||||||||||
}if (d_3_1_Core&& !
| ||||||||||||||||||||
| 61 | d_3_1_Core->refs.deref()) { never executed: d_3_1_Core->refs.deref(); | 0 | ||||||||||||||||||
| QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend( never executed: d_3_1_Core->refs.deref();never executed: ();d_3_1_Core->refs.deref();never executed: d_3_1_Core->refs.deref(); | ||||||||||||||||||||
| 62 | ((!(d_3_1_Core->contextrefs.load())) ? qt_assert("d_3_1_Core->refs.load()",QOpenGLFunctions_3_1_CoreBackend::versionStatus__FILE__,127) : qt_noop()); | - | ||||||||||||||||||
| 63 | delete d_3_1_Core; | 0 | ||||||||||||||||||
}if (d_3_2_Core&& !
| ||||||||||||||||||||
| 64 | d_3_2_Core->refs.deref()) { never executed: d_3_2_Core->refs.deref(); | 0 | ||||||||||||||||||
| QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend( never executed: d_3_2_Core->refs.deref();never executed: ();d_3_2_Core->refs.deref();never executed: d_3_2_Core->refs.deref(); | ||||||||||||||||||||
| 65 | ((!(d_3_2_Core->contextrefs.load())) ? qt_assert("d_3_2_Core->refs.load()",QOpenGLFunctions_3_2_CoreBackend::versionStatus__FILE__,130) : qt_noop()); | - | ||||||||||||||||||
| 66 | delete d_3_2_Core; | 0 | ||||||||||||||||||
}if (d_3_3_Core&& !
| ||||||||||||||||||||
| 67 | d_3_3_Core->refs.deref()) { never executed: d_3_3_Core->refs.deref(); | 0 | ||||||||||||||||||
| QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend( never executed: d_3_3_Core->refs.deref();never executed: ();d_3_3_Core->refs.deref();never executed: d_3_3_Core->refs.deref(); | ||||||||||||||||||||
| 68 | ((!(d_3_3_Core->contextrefs.load())) ? qt_assert("d_3_3_Core->refs.load()",QOpenGLFunctions_3_3_CoreBackend::versionStatus__FILE__,133) : qt_noop()); | - | ||||||||||||||||||
| 69 | delete d_3_3_Core; | 0 | ||||||||||||||||||
}if (d_4_0_Core&& !
| ||||||||||||||||||||
| 70 | d_4_0_Core->refs.deref()) { never executed: d_4_0_Core->refs.deref(); | 0 | ||||||||||||||||||
| QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend( never executed: d_4_0_Core->refs.deref();never executed: ();d_4_0_Core->refs.deref();never executed: d_4_0_Core->refs.deref(); | ||||||||||||||||||||
| 71 | ((!(d_4_0_Core->contextrefs.load())) ? qt_assert("d_4_0_Core->refs.load()",QOpenGLFunctions_4_0_CoreBackend::versionStatus__FILE__,136) : qt_noop()); | - | ||||||||||||||||||
| 72 | delete d_4_0_Core; | 0 | ||||||||||||||||||
}if (d_4_1_Core&& !
| ||||||||||||||||||||
| 73 | d_4_1_Core->refs.deref()) { never executed: d_4_1_Core->refs.deref(); | 0 | ||||||||||||||||||
| QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend( never executed: d_4_1_Core->refs.deref();never executed: ();d_4_1_Core->refs.deref();never executed: d_4_1_Core->refs.deref(); | ||||||||||||||||||||
| 74 | ((!(d_4_1_Core->contextrefs.load())) ? qt_assert("d_4_1_Core->refs.load()",QOpenGLFunctions_4_1_CoreBackend::versionStatus__FILE__,139) : qt_noop()); | - | ||||||||||||||||||
| 75 | delete d_4_1_Core; | 0 | ||||||||||||||||||
}if (d_4_2_Core&& !
| ||||||||||||||||||||
| 76 | d_4_2_Core->refs.deref()) { never executed: d_4_2_Core->refs.deref(); | 0 | ||||||||||||||||||
| QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend( never executed: d_4_2_Core->refs.deref();never executed: ();d_4_2_Core->refs.deref();never executed: d_4_2_Core->refs.deref(); | ||||||||||||||||||||
| 77 | ((!(d_4_2_Core->contextrefs.load())) ? qt_assert("d_4_2_Core->refs.load()",QOpenGLFunctions_4_2_CoreBackend::versionStatus__FILE__,142) : qt_noop()); | - | ||||||||||||||||||
| 78 | delete d_4_2_Core; | 0 | ||||||||||||||||||
}if (d_4_3_Core&& !
| ||||||||||||||||||||
| 79 | d_4_3_Core->refs.deref()) { never executed: d_4_3_Core->refs.deref(); | 0 | ||||||||||||||||||
| QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend( never executed: d_4_3_Core->refs.deref();never executed: ();d_4_3_Core->refs.deref();never executed: d_4_3_Core->refs.deref(); | ||||||||||||||||||||
| 80 | ((!(d_4_3_Core->contextrefs.load())) ? qt_assert("d_4_3_Core->refs.load()",QOpenGLFunctions_4_3_CoreBackend::versionStatus__FILE__,145) : qt_noop()); | - | ||||||||||||||||||
| 81 | delete d_4_3_Core; | 0 | ||||||||||||||||||
}if (d_4_4_Core&& !
| ||||||||||||||||||||
| 82 | d_4_4_Core->refs.deref()) { never executed: d_4_4_Core->refs.deref(); | 0 | ||||||||||||||||||
| QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend( never executed: d_4_4_Core->refs.deref();never executed: ();d_4_4_Core->refs.deref();never executed: d_4_4_Core->refs.deref(); | ||||||||||||||||||||
| 83 | ((!(d_4_4_Core->contextrefs.load())) ? qt_assert("d_4_4_Core->refs.load()",QOpenGLFunctions_4_4_CoreBackend::versionStatus__FILE__,148) : qt_noop()); | - | ||||||||||||||||||
| 84 | delete d_4_4_Core; | 0 | ||||||||||||||||||
}if (d_1_0_Deprecated&& !
| ||||||||||||||||||||
| 85 | d_1_0_Deprecated->refs.deref()) { never executed: d_1_0_Deprecated->refs.deref(); | 0 | ||||||||||||||||||
| QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend( never executed: d_1_0_Deprecated->refs.deref();never executed: ();d_1_0_Deprecated->refs.deref();never executed: d_1_0_Deprecated->refs.deref(); | ||||||||||||||||||||
| 86 | ((!(d_1_0_Deprecated->contextrefs.load())) ? qt_assert("d_1_0_Deprecated->refs.load()",QOpenGLFunctions_1_0_DeprecatedBackend::versionStatus__FILE__,151) : qt_noop()); | - | ||||||||||||||||||
| 87 | delete d_1_0_Deprecated; | 0 | ||||||||||||||||||
}if (d_1_1_Deprecated&& !
| ||||||||||||||||||||
| 88 | d_1_1_Deprecated->refs.deref()) { never executed: d_1_1_Deprecated->refs.deref(); | 0 | ||||||||||||||||||
| QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend( never executed: d_1_1_Deprecated->refs.deref();never executed: ();d_1_1_Deprecated->refs.deref();never executed: d_1_1_Deprecated->refs.deref(); | ||||||||||||||||||||
| 89 | ((!(d_1_1_Deprecated->contextrefs.load())) ? qt_assert("d_1_1_Deprecated->refs.load()",QOpenGLFunctions_1_1_DeprecatedBackend::versionStatus__FILE__,154) : qt_noop()); | - | ||||||||||||||||||
| 90 | delete d_1_1_Deprecated; | 0 | ||||||||||||||||||
}if (d_1_2_Deprecated&& !
| ||||||||||||||||||||
| 91 | d_1_2_Deprecated->refs.deref()) { never executed: d_1_2_Deprecated->refs.deref(); | 0 | ||||||||||||||||||
| QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend( never executed: d_1_2_Deprecated->refs.deref();never executed: ();d_1_2_Deprecated->refs.deref();never executed: d_1_2_Deprecated->refs.deref(); | ||||||||||||||||||||
| 92 | ((!(d_1_2_Deprecated->contextrefs.load())) ? qt_assert("d_1_2_Deprecated->refs.load()",QOpenGLFunctions_1_2_DeprecatedBackend::versionStatus__FILE__,157) : qt_noop()); | - | ||||||||||||||||||
| 93 | delete d_1_2_Deprecated; | 0 | ||||||||||||||||||
}if (d_1_3_Deprecated&& !
| ||||||||||||||||||||
| 94 | d_1_3_Deprecated->refs.deref()) { never executed: d_1_3_Deprecated->refs.deref(); | 0 | ||||||||||||||||||
| QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend( never executed: d_1_3_Deprecated->refs.deref();never executed: ();d_1_3_Deprecated->refs.deref();never executed: d_1_3_Deprecated->refs.deref(); | ||||||||||||||||||||
| 95 | ((!(d_1_3_Deprecated->contextrefs.load())) ? qt_assert("d_1_3_Deprecated->refs.load()",QOpenGLFunctions_1_3_DeprecatedBackend::versionStatus__FILE__,160) : qt_noop()); | - | ||||||||||||||||||
| 96 | delete d_1_3_Deprecated; | 0 | ||||||||||||||||||
}if (d_1_4_Deprecated&& !
| ||||||||||||||||||||
| 97 | d_1_4_Deprecated->refs.deref()) { never executed: d_1_4_Deprecated->refs.deref(); | 0 | ||||||||||||||||||
| QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend( never executed: d_1_4_Deprecated->refs.deref();never executed: ();d_1_4_Deprecated->refs.deref();never executed: d_1_4_Deprecated->refs.deref(); | ||||||||||||||||||||
| 98 | ((!(d_1_4_Deprecated->contextrefs.load())) ? qt_assert("d_1_4_Deprecated->refs.load()",QOpenGLFunctions_1_4_DeprecatedBackend::versionStatus__FILE__,163) : qt_noop()); | - | ||||||||||||||||||
| 99 | delete d_1_4_Deprecated; | 0 | ||||||||||||||||||
}if (d_3_3_Deprecated&& !
| ||||||||||||||||||||
| 100 | d_3_3_Deprecated->refs.deref()) { never executed: d_3_3_Deprecated->refs.deref(); | 0 | ||||||||||||||||||
| QAbstractOpenGLFunctionsPrivate::removeFunctionsBackend( never executed: d_3_3_Deprecated->refs.deref();never executed: ();d_3_3_Deprecated->refs.deref();never executed: d_3_3_Deprecated->refs.deref(); | ||||||||||||||||||||
| 101 | ((!(d_3_3_Deprecated->contextrefs.load())) ? qt_assert("d_3_3_Deprecated->refs.load()",QOpenGLFunctions_3_3_DeprecatedBackend::versionStatus__FILE__,166) : qt_noop()); | - | ||||||||||||||||||
| delete d_3_3_Deprecated; | ||||||||||||||||||||
| }} never executed: end of block | ||||||||||||||||||||
| 103 | - | |||||||||||||||||||
| 104 | bool QOpenGLFunctions_4_4_Compatibility::initializeOpenGLFunctions() | - | ||||||||||||||||||
| 105 | { | - | ||||||||||||||||||
| 106 | if ( isInitialized()
| 0 | ||||||||||||||||||
| 107 | return never executed: true;return true;never executed: return true; | 0 | ||||||||||||||||||
| 108 | - | |||||||||||||||||||
| 109 | QOpenGLContext* context = QOpenGLContext::currentContext(); | - | ||||||||||||||||||
| 110 | - | |||||||||||||||||||
| 111 | - | |||||||||||||||||||
| 112 | - | |||||||||||||||||||
| 113 | if (((owningContext()
| 0 | ||||||||||||||||||
| 114 | && QOpenGLFunctions_4_4_Compatibility::isContextCompatible(context)
| 0 | ||||||||||||||||||
| 115 | { | - | ||||||||||||||||||
| 116 | - | |||||||||||||||||||
| 117 | - | |||||||||||||||||||
| 118 | QOpenGLVersionFunctionsBackend* d = 0; | - | ||||||||||||||||||
| 119 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_0_CoreBackend::versionStatus()); | - | ||||||||||||||||||
| 120 | if (!d) { | - | ||||||||||||||||||
| d = new QOpenGLFunctions_1_0_CoreBackend(context); | ||||||||||||||||||||
| QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_0_CoreBackend::versionStatus(), d); | ||||||||||||||||||||
| }d_1_0_Core = static_cast<QOpenGLFunctions_1_0_CoreBackend*>(d); | ||||||||||||||||||||
| 121 | d->refs.ref(); | - | ||||||||||||||||||
| 122 | - | |||||||||||||||||||
| 123 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_1_CoreBackend::versionStatus()); | - | ||||||||||||||||||
| 124 | if (!d) { | - | ||||||||||||||||||
| d = new QOpenGLFunctions_1_1_CoreBackend(context); | ||||||||||||||||||||
| QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_1_CoreBackend::versionStatus(), d); | ||||||||||||||||||||
| }d_1_1_Core = static_cast<QOpenGLFunctions_1_1_CoreBackend*>(d); | ||||||||||||||||||||
| 125 | d->refs.ref(); | - | ||||||||||||||||||
| 126 | - | |||||||||||||||||||
| 127 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_2_CoreBackend::versionStatus()); | - | ||||||||||||||||||
| 128 | if (!d) { | - | ||||||||||||||||||
| d = new QOpenGLFunctions_1_2_CoreBackend(context); | ||||||||||||||||||||
| QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_2_CoreBackend::versionStatus(), d); | ||||||||||||||||||||
| }d_1_2_Core = static_cast<QOpenGLFunctions_1_2_CoreBackend*>(d); | ||||||||||||||||||||
| 129 | d->refs.ref(); | - | ||||||||||||||||||
| 130 | - | |||||||||||||||||||
| 131 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_3_CoreBackend::versionStatus()); | - | ||||||||||||||||||
| 132 | if (!d) { | - | ||||||||||||||||||
| d = new QOpenGLFunctions_1_3_CoreBackend(context); | ||||||||||||||||||||
| QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_3_CoreBackend::versionStatus(), d); | ||||||||||||||||||||
| }d_1_3_Core = static_cast<QOpenGLFunctions_1_3_CoreBackend*>(d); | ||||||||||||||||||||
| 133 | d->refs.ref(); | - | ||||||||||||||||||
| 134 | - | |||||||||||||||||||
| 135 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_4_CoreBackend::versionStatus()); | - | ||||||||||||||||||
| 136 | if (!d) { | - | ||||||||||||||||||
| d = new QOpenGLFunctions_1_4_CoreBackend(context); | ||||||||||||||||||||
| QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_4_CoreBackend::versionStatus(), d); | ||||||||||||||||||||
| }d_1_4_Core = static_cast<QOpenGLFunctions_1_4_CoreBackend*>(d); | ||||||||||||||||||||
| 137 | d->refs.ref(); | - | ||||||||||||||||||
| 138 | - | |||||||||||||||||||
| 139 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_5_CoreBackend::versionStatus()); | - | ||||||||||||||||||
| 140 | if (!d) { | - | ||||||||||||||||||
| d = new QOpenGLFunctions_1_5_CoreBackend(context); | ||||||||||||||||||||
| QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_5_CoreBackend::versionStatus(), d); | ||||||||||||||||||||
| }d_1_5_Core = static_cast<QOpenGLFunctions_1_5_CoreBackend*>(d); | ||||||||||||||||||||
| 141 | d->refs.ref(); | - | ||||||||||||||||||
| 142 | - | |||||||||||||||||||
| 143 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_2_0_CoreBackend::versionStatus()); | - | ||||||||||||||||||
| 144 | if (!d) { | - | ||||||||||||||||||
| d = new QOpenGLFunctions_2_0_CoreBackend(context); | ||||||||||||||||||||
| QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_2_0_CoreBackend::versionStatus(), d); | ||||||||||||||||||||
| }d_2_0_Core = static_cast<QOpenGLFunctions_2_0_CoreBackend*>(d); | ||||||||||||||||||||
| 145 | d->refs.ref(); | - | ||||||||||||||||||
| 146 | - | |||||||||||||||||||
| 147 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_2_1_CoreBackend::versionStatus()); | - | ||||||||||||||||||
| 148 | if (!d) { | - | ||||||||||||||||||
| d = new QOpenGLFunctions_2_1_CoreBackend(context); | ||||||||||||||||||||
| QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_2_1_CoreBackend::versionStatus(), d); | ||||||||||||||||||||
| }d_2_1_Core = static_cast<QOpenGLFunctions_2_1_CoreBackend*>(d); | ||||||||||||||||||||
| 149 | d->refs.ref(); | - | ||||||||||||||||||
| 150 | - | |||||||||||||||||||
| 151 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_0_CoreBackend::versionStatus()); | - | ||||||||||||||||||
| 152 | if (!d) { | - | ||||||||||||||||||
| d = new QOpenGLFunctions_3_0_CoreBackend(context); | ||||||||||||||||||||
| QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_3_0_CoreBackend::versionStatus(), d); | ||||||||||||||||||||
| }d_3_0_Core = static_cast<QOpenGLFunctions_3_0_CoreBackend*>(d); | ||||||||||||||||||||
| 153 | d->refs.ref(); | - | ||||||||||||||||||
| 154 | - | |||||||||||||||||||
| 155 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_1_CoreBackend::versionStatus()); | - | ||||||||||||||||||
| 156 | if (!d) { | - | ||||||||||||||||||
| d = new QOpenGLFunctions_3_1_CoreBackend(context); | ||||||||||||||||||||
| QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_3_1_CoreBackend::versionStatus(), d); | ||||||||||||||||||||
| }d_3_1_Core = static_cast<QOpenGLFunctions_3_1_CoreBackend*>(d); | ||||||||||||||||||||
| 157 | d->refs.ref(); | - | ||||||||||||||||||
| 158 | - | |||||||||||||||||||
| 159 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_2_CoreBackend::versionStatus()); | - | ||||||||||||||||||
| 160 | if (!d) { | - | ||||||||||||||||||
| d = new QOpenGLFunctions_3_2_CoreBackend(context); | ||||||||||||||||||||
| QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_3_2_CoreBackend::versionStatus(), d); | ||||||||||||||||||||
| }d_3_2_Core = static_cast<QOpenGLFunctions_3_2_CoreBackend*>(d); | ||||||||||||||||||||
| 161 | d->refs.ref(); | - | ||||||||||||||||||
| 162 | - | |||||||||||||||||||
| 163 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_3_CoreBackend::versionStatus()); | - | ||||||||||||||||||
| 164 | if (!d) { | - | ||||||||||||||||||
| d = new QOpenGLFunctions_3_3_CoreBackend(context); | ||||||||||||||||||||
| QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_3_3_CoreBackend::versionStatus(), d); | ||||||||||||||||||||
| }d_3_3_Core = static_cast<QOpenGLFunctions_3_3_CoreBackend*>(d); | ||||||||||||||||||||
| 165 | d->refs.ref(); | - | ||||||||||||||||||
| 166 | - | |||||||||||||||||||
| 167 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_4_0_CoreBackend::versionStatus()); | - | ||||||||||||||||||
| 168 | if (!d) { | - | ||||||||||||||||||
| d = new QOpenGLFunctions_4_0_CoreBackend(context); | ||||||||||||||||||||
| QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_4_0_CoreBackend::versionStatus(), d); | ||||||||||||||||||||
| }d_4_0_Core = static_cast<QOpenGLFunctions_4_0_CoreBackend*>(d); | ||||||||||||||||||||
| 169 | d->refs.ref(); | - | ||||||||||||||||||
| 170 | - | |||||||||||||||||||
| 171 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_4_1_CoreBackend::versionStatus()); | - | ||||||||||||||||||
| 172 | if (!d) { | - | ||||||||||||||||||
| d = new QOpenGLFunctions_4_1_CoreBackend(context); | ||||||||||||||||||||
| QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_4_1_CoreBackend::versionStatus(), d); | ||||||||||||||||||||
| }d_4_1_Core = static_cast<QOpenGLFunctions_4_1_CoreBackend*>(d); | ||||||||||||||||||||
| 173 | d->refs.ref(); | - | ||||||||||||||||||
| 174 | - | |||||||||||||||||||
| 175 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_4_2_CoreBackend::versionStatus()); | - | ||||||||||||||||||
| 176 | if (!d) { | - | ||||||||||||||||||
| d = new QOpenGLFunctions_4_2_CoreBackend(context); | ||||||||||||||||||||
| QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_4_2_CoreBackend::versionStatus(), d); | ||||||||||||||||||||
| }d_4_2_Core = static_cast<QOpenGLFunctions_4_2_CoreBackend*>(d); | ||||||||||||||||||||
| 177 | d->refs.ref(); | - | ||||||||||||||||||
| 178 | - | |||||||||||||||||||
| 179 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_4_3_CoreBackend::versionStatus()); | - | ||||||||||||||||||
| 180 | if (!d) { | - | ||||||||||||||||||
| d = new QOpenGLFunctions_4_3_CoreBackend(context); | ||||||||||||||||||||
| QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_4_3_CoreBackend::versionStatus(), d); | ||||||||||||||||||||
| }d_4_3_Core = static_cast<QOpenGLFunctions_4_3_CoreBackend*>(d); | ||||||||||||||||||||
| 181 | d->refs.ref(); | - | ||||||||||||||||||
| 182 | - | |||||||||||||||||||
| 183 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_4_4_CoreBackend::versionStatus()); | - | ||||||||||||||||||
| 184 | if (!d) { | - | ||||||||||||||||||
| d = new QOpenGLFunctions_4_4_CoreBackend(context); | ||||||||||||||||||||
| QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_4_4_CoreBackend::versionStatus(), d); | ||||||||||||||||||||
| }d_4_4_Core = static_cast<QOpenGLFunctions_4_4_CoreBackend*>(d); | ||||||||||||||||||||
| 185 | d->refs.ref(); | - | ||||||||||||||||||
| 186 | - | |||||||||||||||||||
| 187 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_0_DeprecatedBackend::versionStatus()); | - | ||||||||||||||||||
| 188 | if (!d) { | - | ||||||||||||||||||
| d = new QOpenGLFunctions_1_0_DeprecatedBackend(context); | ||||||||||||||||||||
| QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_0_DeprecatedBackend::versionStatus(), d); | ||||||||||||||||||||
| }d_1_0_Deprecated = static_cast<QOpenGLFunctions_1_0_DeprecatedBackend*>(d); | ||||||||||||||||||||
| 189 | d->refs.ref(); | - | ||||||||||||||||||
| 190 | - | |||||||||||||||||||
| 191 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_1_DeprecatedBackend::versionStatus()); | - | ||||||||||||||||||
| 192 | if (!d) { | - | ||||||||||||||||||
| d = new QOpenGLFunctions_1_1_DeprecatedBackend(context); | ||||||||||||||||||||
| QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_1_DeprecatedBackend::versionStatus(), d); | ||||||||||||||||||||
| }d_1_1_Deprecated = static_cast<QOpenGLFunctions_1_1_DeprecatedBackend*>(d); | ||||||||||||||||||||
| 193 | d->refs.ref(); | - | ||||||||||||||||||
| 194 | - | |||||||||||||||||||
| 195 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_2_DeprecatedBackend::versionStatus()); | - | ||||||||||||||||||
| 196 | if (!d) { | - | ||||||||||||||||||
| d = new QOpenGLFunctions_1_2_DeprecatedBackend(context); | ||||||||||||||||||||
| QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_2_DeprecatedBackend::versionStatus(), d); | ||||||||||||||||||||
| }d_1_2_Deprecated = static_cast<QOpenGLFunctions_1_2_DeprecatedBackend*>(d); | ||||||||||||||||||||
| 197 | d->refs.ref(); | - | ||||||||||||||||||
| 198 | - | |||||||||||||||||||
| 199 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_3_DeprecatedBackend::versionStatus()); | - | ||||||||||||||||||
| 200 | if (!d) { | - | ||||||||||||||||||
| d = new QOpenGLFunctions_1_3_DeprecatedBackend(context); | ||||||||||||||||||||
| QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_3_DeprecatedBackend::versionStatus(), d); | ||||||||||||||||||||
| }d_1_3_Deprecated = static_cast<QOpenGLFunctions_1_3_DeprecatedBackend*>(d); | ||||||||||||||||||||
| 201 | d->refs.ref(); | - | ||||||||||||||||||
| 202 | - | |||||||||||||||||||
| 203 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_4_DeprecatedBackend::versionStatus()); | - | ||||||||||||||||||
| 204 | if (!d) { | - | ||||||||||||||||||
| d = new QOpenGLFunctions_1_4_DeprecatedBackend(context); | ||||||||||||||||||||
| QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_1_4_DeprecatedBackend::versionStatus(), d); | ||||||||||||||||||||
| }d_1_4_Deprecated = static_cast<QOpenGLFunctions_1_4_DeprecatedBackend*>(d); | ||||||||||||||||||||
| 205 | d->refs.ref(); | - | ||||||||||||||||||
| 206 | - | |||||||||||||||||||
| 207 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_3_DeprecatedBackend::versionStatus()); | - | ||||||||||||||||||
| 208 | if (!d) { | - | ||||||||||||||||||
| d = new QOpenGLFunctions_3_3_DeprecatedBackend(context); | ||||||||||||||||||||
| QAbstractOpenGLFunctionsPrivate::insertFunctionsBackend(context, QOpenGLFunctions_3_3_DeprecatedBackend::versionStatus(), d); | ||||||||||||||||||||
| }d_3_3_Deprecated = static_cast<QOpenGLFunctions_3_3_DeprecatedBackend*>(d); | ||||||||||||||||||||
| 209 | d->refs.ref(); | - | ||||||||||||||||||
| 210 | - | |||||||||||||||||||
| 211 | QAbstractOpenGLFunctions::initializeOpenGLFunctions(); | - | ||||||||||||||||||
| 212 | } never executed: end of block | 0 | ||||||||||||||||||
| 213 | return never executed: isInitialized();return isInitialized();never executed: return isInitialized(); | 0 | ||||||||||||||||||
| 214 | } | - | ||||||||||||||||||
| 215 | - | |||||||||||||||||||
| 216 | bool QOpenGLFunctions_4_4_Compatibility::isContextCompatible(QOpenGLContext *context) | - | ||||||||||||||||||
| 217 | { | - | ||||||||||||||||||
| 218 | ((!(context)) ? qt_assert("context",__FILE__,392283) : qt_noop()); | - | ||||||||||||||||||
| 219 | QSurfaceFormat f = context->format(); | - | ||||||||||||||||||
| 220 | const QPair<int, int> v = qMakePair(f.majorVersion(), f.minorVersion()); | - | ||||||||||||||||||
| 221 | if (v < qMakePair(4, 4)) | - | ||||||||||||||||||
| 222 | return false; | - | ||||||||||||||||||
| 223 | - | |||||||||||||||||||
| 224 | if (f.profile() == QSurfaceFormat::CoreProfile) | - | ||||||||||||||||||
| 225 | return false; | - | ||||||||||||||||||
| 226 | - | |||||||||||||||||||
| 227 | return true; | - | ||||||||||||||||||
| 228 | } | - | ||||||||||||||||||
| 229 | - | |||||||||||||||||||
| 230 | QOpenGLVersionProfile QOpenGLFunctions_4_4_Compatibility::versionProfile() | - | ||||||||||||||||||
| 231 | { | - | ||||||||||||||||||
| 232 | QOpenGLVersionProfile v; | - | ||||||||||||||||||
| 233 | v.setVersion(4, 4); | - | ||||||||||||||||||
| 234 | v.setProfile(QSurfaceFormat::CompatibilityProfile); | - | ||||||||||||||||||
| 235 | return v; | - | ||||||||||||||||||
| 236 | } | - | ||||||||||||||||||
| 237 | - | |||||||||||||||||||
| 238 | - | |||||||||||||||||||
| Switch to Source code | Preprocessed file |