| Absolute File Name: | /home/qt/qt5_coco/qt5/qtbase/src/gui/opengl/qopenglfunctions_2_1.cpp | 
| Switch to Source code | Preprocessed file | 
| Line | Source | Count | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||||||||||||||
| 2 | - | |||||||||||||||||||
| 3 | QOpenGLFunctions_2_1::QOpenGLFunctions_2_1() | - | ||||||||||||||||||
| 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_1_0_Deprecated(0) | - | ||||||||||||||||||
| 14 | , d_1_1_Deprecated(0) | - | ||||||||||||||||||
| 15 | , d_1_2_Deprecated(0) | - | ||||||||||||||||||
| 16 | , d_1_3_Deprecated(0) | - | ||||||||||||||||||
| 17 | , d_1_4_Deprecated(0) | - | ||||||||||||||||||
| 18 | , m_reserved_2_0_Deprecated(nullptr) | - | ||||||||||||||||||
| 19 | { | - | ||||||||||||||||||
| 20 | } | - | ||||||||||||||||||
| 21 | - | |||||||||||||||||||
| 22 | QOpenGLFunctions_2_1::~QOpenGLFunctions_2_1() | - | ||||||||||||||||||
| 23 | { | - | ||||||||||||||||||
| 24 |     if (d_1_0_Core&& !
  | 0 | ||||||||||||||||||
| 25 |         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(); | ||||||||||||||||||||
| 26 | ((!(d_1_0_Core->contextrefs.load())) ? qt_assert("d_1_0_Core->refs.load()",QOpenGLFunctions_1_0_CoreBackend::versionStatus__FILE__,91) : qt_noop()); | - | ||||||||||||||||||
| 27 | delete d_1_0_Core; | 0 | ||||||||||||||||||
    }if (d_1_1_Core&& !
  | ||||||||||||||||||||
| 28 |         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(); | ||||||||||||||||||||
| 29 | ((!(d_1_1_Core->contextrefs.load())) ? qt_assert("d_1_1_Core->refs.load()",QOpenGLFunctions_1_1_CoreBackend::versionStatus__FILE__,94) : qt_noop()); | - | ||||||||||||||||||
| 30 | delete d_1_1_Core; | 0 | ||||||||||||||||||
    }if (d_1_2_Core&& !
  | ||||||||||||||||||||
| 31 |         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(); | ||||||||||||||||||||
| 32 | ((!(d_1_2_Core->contextrefs.load())) ? qt_assert("d_1_2_Core->refs.load()",QOpenGLFunctions_1_2_CoreBackend::versionStatus__FILE__,97) : qt_noop()); | - | ||||||||||||||||||
| 33 | delete d_1_2_Core; | 0 | ||||||||||||||||||
    }if (d_1_3_Core&& !
  | ||||||||||||||||||||
| 34 |         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(); | ||||||||||||||||||||
| 35 | ((!(d_1_3_Core->contextrefs.load())) ? qt_assert("d_1_3_Core->refs.load()",QOpenGLFunctions_1_3_CoreBackend::versionStatus__FILE__,100) : qt_noop()); | - | ||||||||||||||||||
| 36 | delete d_1_3_Core; | 0 | ||||||||||||||||||
    }if (d_1_4_Core&& !
  | ||||||||||||||||||||
| 37 |         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(); | ||||||||||||||||||||
| 38 | ((!(d_1_4_Core->contextrefs.load())) ? qt_assert("d_1_4_Core->refs.load()",QOpenGLFunctions_1_4_CoreBackend::versionStatus__FILE__,103) : qt_noop()); | - | ||||||||||||||||||
| 39 | delete d_1_4_Core; | 0 | ||||||||||||||||||
    }if (d_1_5_Core&& !
  | ||||||||||||||||||||
| 40 |         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(); | ||||||||||||||||||||
| 41 | ((!(d_1_5_Core->contextrefs.load())) ? qt_assert("d_1_5_Core->refs.load()",QOpenGLFunctions_1_5_CoreBackend::versionStatus__FILE__,106) : qt_noop()); | - | ||||||||||||||||||
| 42 | delete d_1_5_Core; | 0 | ||||||||||||||||||
    }if (d_2_0_Core&& !
  | ||||||||||||||||||||
| 43 |         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(); | ||||||||||||||||||||
| 44 | ((!(d_2_0_Core->contextrefs.load())) ? qt_assert("d_2_0_Core->refs.load()",QOpenGLFunctions_2_0_CoreBackend::versionStatus__FILE__,109) : qt_noop()); | - | ||||||||||||||||||
| 45 | delete d_2_0_Core; | 0 | ||||||||||||||||||
    }if (d_2_1_Core&& !
  | ||||||||||||||||||||
| 46 |         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(); | ||||||||||||||||||||
| 47 | ((!(d_2_1_Core->contextrefs.load())) ? qt_assert("d_2_1_Core->refs.load()",QOpenGLFunctions_2_1_CoreBackend::versionStatus__FILE__,112) : qt_noop()); | - | ||||||||||||||||||
| 48 | delete d_2_1_Core; | 0 | ||||||||||||||||||
    }if (d_1_0_Deprecated&& !
  | ||||||||||||||||||||
| 49 |         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(); | ||||||||||||||||||||
| 50 | ((!(d_1_0_Deprecated->contextrefs.load())) ? qt_assert("d_1_0_Deprecated->refs.load()",QOpenGLFunctions_1_0_DeprecatedBackend::versionStatus__FILE__,115) : qt_noop()); | - | ||||||||||||||||||
| 51 | delete d_1_0_Deprecated; | 0 | ||||||||||||||||||
    }if (d_1_1_Deprecated&& !
  | ||||||||||||||||||||
| 52 |         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(); | ||||||||||||||||||||
| 53 | ((!(d_1_1_Deprecated->contextrefs.load())) ? qt_assert("d_1_1_Deprecated->refs.load()",QOpenGLFunctions_1_1_DeprecatedBackend::versionStatus__FILE__,118) : qt_noop()); | - | ||||||||||||||||||
| 54 | delete d_1_1_Deprecated; | 0 | ||||||||||||||||||
    }if (d_1_2_Deprecated&& !
  | ||||||||||||||||||||
| 55 |         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(); | ||||||||||||||||||||
| 56 | ((!(d_1_2_Deprecated->contextrefs.load())) ? qt_assert("d_1_2_Deprecated->refs.load()",QOpenGLFunctions_1_2_DeprecatedBackend::versionStatus__FILE__,121) : qt_noop()); | - | ||||||||||||||||||
| 57 | delete d_1_2_Deprecated; | 0 | ||||||||||||||||||
    }if (d_1_3_Deprecated&& !
  | ||||||||||||||||||||
| 58 |         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(); | ||||||||||||||||||||
| 59 | ((!(d_1_3_Deprecated->contextrefs.load())) ? qt_assert("d_1_3_Deprecated->refs.load()",QOpenGLFunctions_1_3_DeprecatedBackend::versionStatus__FILE__,124) : qt_noop()); | - | ||||||||||||||||||
| 60 | delete d_1_3_Deprecated; | 0 | ||||||||||||||||||
    }if (d_1_4_Deprecated&& !
  | ||||||||||||||||||||
| 61 |         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(); | ||||||||||||||||||||
| 62 | ((!(d_1_4_Deprecated->contextrefs.load())) ? qt_assert("d_1_4_Deprecated->refs.load()",QOpenGLFunctions_1_4_DeprecatedBackend::versionStatus__FILE__,127) : qt_noop()); | - | ||||||||||||||||||
| delete d_1_4_Deprecated; | ||||||||||||||||||||
|     }} never executed:  end of block | ||||||||||||||||||||
| 64 | - | |||||||||||||||||||
| 65 | bool QOpenGLFunctions_2_1::initializeOpenGLFunctions() | - | ||||||||||||||||||
| 66 | { | - | ||||||||||||||||||
| 67 |     if ( isInitialized()
  | 0 | ||||||||||||||||||
| 68 |         return never executed:   true;return true;never executed:  return true; | 0 | ||||||||||||||||||
| 69 | - | |||||||||||||||||||
| 70 | QOpenGLContext* context = QOpenGLContext::currentContext(); | - | ||||||||||||||||||
| 71 | - | |||||||||||||||||||
| 72 | - | |||||||||||||||||||
| 73 | - | |||||||||||||||||||
| 74 |     if (((owningContext()
 
 
  | 0 | ||||||||||||||||||
| 75 |         && QOpenGLFunctions_2_1::isContextCompatible(context)
  | 0 | ||||||||||||||||||
| 76 | { | - | ||||||||||||||||||
| 77 | - | |||||||||||||||||||
| 78 | - | |||||||||||||||||||
| 79 | QOpenGLVersionFunctionsBackend* d = 0; | - | ||||||||||||||||||
| 80 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_0_CoreBackend::versionStatus()); | - | ||||||||||||||||||
| 81 | 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); | ||||||||||||||||||||
| 82 | d->refs.ref(); | - | ||||||||||||||||||
| 83 | - | |||||||||||||||||||
| 84 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_1_CoreBackend::versionStatus()); | - | ||||||||||||||||||
| 85 | 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); | ||||||||||||||||||||
| 86 | d->refs.ref(); | - | ||||||||||||||||||
| 87 | - | |||||||||||||||||||
| 88 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_2_CoreBackend::versionStatus()); | - | ||||||||||||||||||
| 89 | 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); | ||||||||||||||||||||
| 90 | d->refs.ref(); | - | ||||||||||||||||||
| 91 | - | |||||||||||||||||||
| 92 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_3_CoreBackend::versionStatus()); | - | ||||||||||||||||||
| 93 | 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); | ||||||||||||||||||||
| 94 | d->refs.ref(); | - | ||||||||||||||||||
| 95 | - | |||||||||||||||||||
| 96 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_4_CoreBackend::versionStatus()); | - | ||||||||||||||||||
| 97 | 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); | ||||||||||||||||||||
| 98 | d->refs.ref(); | - | ||||||||||||||||||
| 99 | - | |||||||||||||||||||
| 100 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_5_CoreBackend::versionStatus()); | - | ||||||||||||||||||
| 101 | 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); | ||||||||||||||||||||
| 102 | d->refs.ref(); | - | ||||||||||||||||||
| 103 | - | |||||||||||||||||||
| 104 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_2_0_CoreBackend::versionStatus()); | - | ||||||||||||||||||
| 105 | 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); | ||||||||||||||||||||
| 106 | d->refs.ref(); | - | ||||||||||||||||||
| 107 | - | |||||||||||||||||||
| 108 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_2_1_CoreBackend::versionStatus()); | - | ||||||||||||||||||
| 109 | 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); | ||||||||||||||||||||
| 110 | d->refs.ref(); | - | ||||||||||||||||||
| 111 | - | |||||||||||||||||||
| 112 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_0_DeprecatedBackend::versionStatus()); | - | ||||||||||||||||||
| 113 | 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); | ||||||||||||||||||||
| 114 | d->refs.ref(); | - | ||||||||||||||||||
| 115 | - | |||||||||||||||||||
| 116 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_1_DeprecatedBackend::versionStatus()); | - | ||||||||||||||||||
| 117 | 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); | ||||||||||||||||||||
| 118 | d->refs.ref(); | - | ||||||||||||||||||
| 119 | - | |||||||||||||||||||
| 120 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_2_DeprecatedBackend::versionStatus()); | - | ||||||||||||||||||
| 121 | 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); | ||||||||||||||||||||
| 122 | d->refs.ref(); | - | ||||||||||||||||||
| 123 | - | |||||||||||||||||||
| 124 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_3_DeprecatedBackend::versionStatus()); | - | ||||||||||||||||||
| 125 | 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); | ||||||||||||||||||||
| 126 | d->refs.ref(); | - | ||||||||||||||||||
| 127 | - | |||||||||||||||||||
| 128 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_4_DeprecatedBackend::versionStatus()); | - | ||||||||||||||||||
| 129 | 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); | ||||||||||||||||||||
| 130 | d->refs.ref(); | - | ||||||||||||||||||
| 131 | - | |||||||||||||||||||
| 132 | QAbstractOpenGLFunctions::initializeOpenGLFunctions(); | - | ||||||||||||||||||
| 133 |     } never executed:  end of block | 0 | ||||||||||||||||||
| 134 |     return never executed:   isInitialized();return isInitialized();never executed:  return isInitialized(); | 0 | ||||||||||||||||||
| 135 | } | - | ||||||||||||||||||
| 136 | - | |||||||||||||||||||
| 137 | bool QOpenGLFunctions_2_1::isContextCompatible(QOpenGLContext *context) | - | ||||||||||||||||||
| 138 | { | - | ||||||||||||||||||
| 139 | ((!(context)) ? qt_assert("context",__FILE__,263204) : qt_noop()); | - | ||||||||||||||||||
| 140 | QSurfaceFormat f = context->format(); | - | ||||||||||||||||||
| 141 | const QPair<int, int> v = qMakePair(f.majorVersion(), f.minorVersion()); | - | ||||||||||||||||||
| 142 | if (v < qMakePair(2, 1)) | - | ||||||||||||||||||
| 143 | return false; | - | ||||||||||||||||||
| 144 | - | |||||||||||||||||||
| 145 | if (f.profile() == QSurfaceFormat::CoreProfile) | - | ||||||||||||||||||
| 146 | return false; | - | ||||||||||||||||||
| 147 | - | |||||||||||||||||||
| 148 | return true; | - | ||||||||||||||||||
| 149 | } | - | ||||||||||||||||||
| 150 | - | |||||||||||||||||||
| 151 | QOpenGLVersionProfile QOpenGLFunctions_2_1::versionProfile() | - | ||||||||||||||||||
| 152 | { | - | ||||||||||||||||||
| 153 | QOpenGLVersionProfile v; | - | ||||||||||||||||||
| 154 | v.setVersion(2, 1); | - | ||||||||||||||||||
| 155 | return v; | - | ||||||||||||||||||
| 156 | } | - | ||||||||||||||||||
| 157 | - | |||||||||||||||||||
| 158 | - | |||||||||||||||||||
| Switch to Source code | Preprocessed file |