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