Absolute File Name: | /home/qt/qt5_coco/qt5/qtbase/src/gui/opengl/qopenglfunctions_4_1_core.cpp |
Switch to Source code | Preprocessed file |
Line | Source | Count | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | - | |||||||||||||||||||
2 | - | |||||||||||||||||||
3 | QOpenGLFunctions_4_1_Core::QOpenGLFunctions_4_1_Core() | - | ||||||||||||||||||
4 | : QAbstractOpenGLFunctions() | - | ||||||||||||||||||
5 | , d_1_0_Core(0) | - | ||||||||||||||||||
6 | , d_1_1_Core(0) | - | ||||||||||||||||||
7 | , d_1_2_Core(0) | - | ||||||||||||||||||
8 | , d_1_3_Core(0) | - | ||||||||||||||||||
9 | , d_1_4_Core(0) | - | ||||||||||||||||||
10 | , d_1_5_Core(0) | - | ||||||||||||||||||
11 | , d_2_0_Core(0) | - | ||||||||||||||||||
12 | , d_2_1_Core(0) | - | ||||||||||||||||||
13 | , d_3_0_Core(0) | - | ||||||||||||||||||
14 | , d_3_1_Core(0) | - | ||||||||||||||||||
15 | , d_3_2_Core(0) | - | ||||||||||||||||||
16 | , d_3_3_Core(0) | - | ||||||||||||||||||
17 | , d_4_0_Core(0) | - | ||||||||||||||||||
18 | , d_4_1_Core(0) | - | ||||||||||||||||||
19 | { | - | ||||||||||||||||||
20 | } | - | ||||||||||||||||||
21 | - | |||||||||||||||||||
22 | QOpenGLFunctions_4_1_Core::~QOpenGLFunctions_4_1_Core() | - | ||||||||||||||||||
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_3_0_Core&& !
| ||||||||||||||||||||
49 | 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(); | ||||||||||||||||||||
50 | ((!(d_3_0_Core->contextrefs.load())) ? qt_assert("d_3_0_Core->refs.load()",QOpenGLFunctions_3_0_CoreBackend::versionStatus__FILE__,115) : qt_noop()); | - | ||||||||||||||||||
51 | delete d_3_0_Core; | 0 | ||||||||||||||||||
}if (d_3_1_Core&& !
| ||||||||||||||||||||
52 | 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(); | ||||||||||||||||||||
53 | ((!(d_3_1_Core->contextrefs.load())) ? qt_assert("d_3_1_Core->refs.load()",QOpenGLFunctions_3_1_CoreBackend::versionStatus__FILE__,118) : qt_noop()); | - | ||||||||||||||||||
54 | delete d_3_1_Core; | 0 | ||||||||||||||||||
}if (d_3_2_Core&& !
| ||||||||||||||||||||
55 | 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(); | ||||||||||||||||||||
56 | ((!(d_3_2_Core->contextrefs.load())) ? qt_assert("d_3_2_Core->refs.load()",QOpenGLFunctions_3_2_CoreBackend::versionStatus__FILE__,121) : qt_noop()); | - | ||||||||||||||||||
57 | delete d_3_2_Core; | 0 | ||||||||||||||||||
}if (d_3_3_Core&& !
| ||||||||||||||||||||
58 | 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(); | ||||||||||||||||||||
59 | ((!(d_3_3_Core->contextrefs.load())) ? qt_assert("d_3_3_Core->refs.load()",QOpenGLFunctions_3_3_CoreBackend::versionStatus__FILE__,124) : qt_noop()); | - | ||||||||||||||||||
60 | delete d_3_3_Core; | 0 | ||||||||||||||||||
}if (d_4_0_Core&& !
| ||||||||||||||||||||
61 | 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(); | ||||||||||||||||||||
62 | ((!(d_4_0_Core->contextrefs.load())) ? qt_assert("d_4_0_Core->refs.load()",QOpenGLFunctions_4_0_CoreBackend::versionStatus__FILE__,127) : qt_noop()); | - | ||||||||||||||||||
63 | delete d_4_0_Core; | 0 | ||||||||||||||||||
}if (d_4_1_Core&& !
| ||||||||||||||||||||
64 | 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(); | ||||||||||||||||||||
65 | ((!(d_4_1_Core->contextrefs.load())) ? qt_assert("d_4_1_Core->refs.load()",QOpenGLFunctions_4_1_CoreBackend::versionStatus__FILE__,130) : qt_noop()); | - | ||||||||||||||||||
delete d_4_1_Core; | ||||||||||||||||||||
}} never executed: end of block | ||||||||||||||||||||
67 | - | |||||||||||||||||||
68 | bool QOpenGLFunctions_4_1_Core::initializeOpenGLFunctions() | - | ||||||||||||||||||
69 | { | - | ||||||||||||||||||
70 | if ( isInitialized()
| 0 | ||||||||||||||||||
71 | return never executed: true;return true; never executed: return true; | 0 | ||||||||||||||||||
72 | - | |||||||||||||||||||
73 | QOpenGLContext* context = QOpenGLContext::currentContext(); | - | ||||||||||||||||||
74 | - | |||||||||||||||||||
75 | - | |||||||||||||||||||
76 | - | |||||||||||||||||||
77 | if (((owningContext()
| 0 | ||||||||||||||||||
78 | && QOpenGLFunctions_4_1_Core::isContextCompatible(context)
| 0 | ||||||||||||||||||
79 | { | - | ||||||||||||||||||
80 | - | |||||||||||||||||||
81 | - | |||||||||||||||||||
82 | QOpenGLVersionFunctionsBackend* d = 0; | - | ||||||||||||||||||
83 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_0_CoreBackend::versionStatus()); | - | ||||||||||||||||||
84 | 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); | ||||||||||||||||||||
85 | d->refs.ref(); | - | ||||||||||||||||||
86 | - | |||||||||||||||||||
87 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_1_CoreBackend::versionStatus()); | - | ||||||||||||||||||
88 | 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); | ||||||||||||||||||||
89 | d->refs.ref(); | - | ||||||||||||||||||
90 | - | |||||||||||||||||||
91 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_2_CoreBackend::versionStatus()); | - | ||||||||||||||||||
92 | 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); | ||||||||||||||||||||
93 | d->refs.ref(); | - | ||||||||||||||||||
94 | - | |||||||||||||||||||
95 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_3_CoreBackend::versionStatus()); | - | ||||||||||||||||||
96 | 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); | ||||||||||||||||||||
97 | d->refs.ref(); | - | ||||||||||||||||||
98 | - | |||||||||||||||||||
99 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_4_CoreBackend::versionStatus()); | - | ||||||||||||||||||
100 | 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); | ||||||||||||||||||||
101 | d->refs.ref(); | - | ||||||||||||||||||
102 | - | |||||||||||||||||||
103 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_1_5_CoreBackend::versionStatus()); | - | ||||||||||||||||||
104 | 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); | ||||||||||||||||||||
105 | d->refs.ref(); | - | ||||||||||||||||||
106 | - | |||||||||||||||||||
107 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_2_0_CoreBackend::versionStatus()); | - | ||||||||||||||||||
108 | 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); | ||||||||||||||||||||
109 | d->refs.ref(); | - | ||||||||||||||||||
110 | - | |||||||||||||||||||
111 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_2_1_CoreBackend::versionStatus()); | - | ||||||||||||||||||
112 | 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); | ||||||||||||||||||||
113 | d->refs.ref(); | - | ||||||||||||||||||
114 | - | |||||||||||||||||||
115 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_0_CoreBackend::versionStatus()); | - | ||||||||||||||||||
116 | 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); | ||||||||||||||||||||
117 | d->refs.ref(); | - | ||||||||||||||||||
118 | - | |||||||||||||||||||
119 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_1_CoreBackend::versionStatus()); | - | ||||||||||||||||||
120 | 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); | ||||||||||||||||||||
121 | d->refs.ref(); | - | ||||||||||||||||||
122 | - | |||||||||||||||||||
123 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_2_CoreBackend::versionStatus()); | - | ||||||||||||||||||
124 | 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); | ||||||||||||||||||||
125 | d->refs.ref(); | - | ||||||||||||||||||
126 | - | |||||||||||||||||||
127 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_3_3_CoreBackend::versionStatus()); | - | ||||||||||||||||||
128 | 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); | ||||||||||||||||||||
129 | d->refs.ref(); | - | ||||||||||||||||||
130 | - | |||||||||||||||||||
131 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_4_0_CoreBackend::versionStatus()); | - | ||||||||||||||||||
132 | 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); | ||||||||||||||||||||
133 | d->refs.ref(); | - | ||||||||||||||||||
134 | - | |||||||||||||||||||
135 | d = QAbstractOpenGLFunctionsPrivate::functionsBackend(context, QOpenGLFunctions_4_1_CoreBackend::versionStatus()); | - | ||||||||||||||||||
136 | 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); | ||||||||||||||||||||
137 | d->refs.ref(); | - | ||||||||||||||||||
138 | - | |||||||||||||||||||
139 | QAbstractOpenGLFunctions::initializeOpenGLFunctions(); | - | ||||||||||||||||||
140 | } never executed: end of block | 0 | ||||||||||||||||||
141 | return never executed: isInitialized();return isInitialized(); never executed: return isInitialized(); | 0 | ||||||||||||||||||
142 | } | - | ||||||||||||||||||
143 | - | |||||||||||||||||||
144 | bool QOpenGLFunctions_4_1_Core::isContextCompatible(QOpenGLContext *context) | - | ||||||||||||||||||
145 | { | - | ||||||||||||||||||
146 | ((!(context)) ? qt_assert("context",__FILE__,275211) : qt_noop()); | - | ||||||||||||||||||
147 | QSurfaceFormat f = context->format(); | - | ||||||||||||||||||
148 | const QPair<int, int> v = qMakePair(f.majorVersion(), f.minorVersion()); | - | ||||||||||||||||||
149 | if (v < qMakePair(4, 1)) | - | ||||||||||||||||||
150 | return false; | - | ||||||||||||||||||
151 | - | |||||||||||||||||||
152 | return true; | - | ||||||||||||||||||
153 | } | - | ||||||||||||||||||
154 | - | |||||||||||||||||||
155 | QOpenGLVersionProfile QOpenGLFunctions_4_1_Core::versionProfile() | - | ||||||||||||||||||
156 | { | - | ||||||||||||||||||
157 | QOpenGLVersionProfile v; | - | ||||||||||||||||||
158 | v.setVersion(4, 1); | - | ||||||||||||||||||
159 | v.setProfile(QSurfaceFormat::CoreProfile); | - | ||||||||||||||||||
160 | return v; | - | ||||||||||||||||||
161 | } | - | ||||||||||||||||||
162 | - | |||||||||||||||||||
163 | - | |||||||||||||||||||
Switch to Source code | Preprocessed file |