Commit 8d33257977932dec5c52ba6f48e5d4bbf34e740a

Fix test breakage caused by display list changes.
  
170170 QGLCube cube;
171171 QGLDisplayList list;
172172 list.newSection(QGL::Faceted);
173 QGLSceneNode *node = list.currentNode();
173174 list << cube;
174175 list.finalize();
175 QGLVertexArray ary = list.geometry()->toVertexArray();
176 QGLVertexArray ary = node->geometry()->toVertexArray();
176177 QGLVertexDescription desc = ary.fields();
177178 int verts = desc.indexOf(QGL::Position);
178179 int texx = desc.indexOf(QGL::TextureCoord0);
200200 {
201201 QGLDisplayList list;
202202 list.newSection(QGL::Faceted);
203 QGLSceneNode *node = list.currentNode();
203204 list << cube;
204205 list.finalize();
205 QGLVertexArray ary = list.geometry()->toVertexArray();
206 QGLVertexArray ary = node->geometry()->toVertexArray();
206207 int texx = ary.fields().indexOf(QGL::TextureCoord0);
207208 for (int i = 0, v = 0; i < QGL_CUBE_SIZE; ++v, i += 8)
208209 {
218218 {
219219 QGLDisplayList list;
220220 list.newSection(QGL::Faceted);
221 QGLSceneNode *node = list.currentNode();
221222 list << cube;
222223 list.finalize();
223 QGLVertexArray ary = list.geometry()->toVertexArray();
224 QGLVertexArray ary = node->geometry()->toVertexArray();
224225 int texx = ary.fields().indexOf(QGL::TextureCoord0);
225226 for (int i = 0, v = 0; i < QGL_CUBE_SIZE; ++v, i += 8)
226227 {
245245 {
246246 QGLDisplayList list;
247247 list.newSection(QGL::Faceted);
248 QGLSceneNode *node = list.currentNode();
248249 list << cfL << cfT << cfR << cfBt << cfF << cfBk;
249250 list.finalize();
250 QGLVertexArray ary = list.geometry()->toVertexArray();
251 QGLIndexArray indx = list.geometry()->indices();
251 QGLVertexArray ary = node->geometry()->toVertexArray();
252 QGLIndexArray indx = node->geometry()->indices();
252253 int texx = ary.fields().indexOf(QGL::TextureCoord0);
253254 QVector3DArray fm;
254255 for (int i = 0; i < QGL_CUBE_SIZE; i += 8)
281281 {
282282 QGLDisplayList list;
283283 list.newSection(QGL::Faceted);
284 QGLSceneNode *node = list.currentNode();
284285 list << cubeFace;
285286 list.finalize();
286 QGLVertexArray ary = list.geometry()->toVertexArray();
287 QGLVertexArray ary = node->geometry()->toVertexArray();
287288 int texx = ary.fields().indexOf(QGL::TextureCoord0);
288289 for (int i = begin; i < end; i += 8)
289290 {
300300 {
301301 QGLDisplayList list;
302302 list.newSection(QGL::Faceted);
303 QGLSceneNode *node = list.currentNode();
303304 list << cubeFace;
304305 list.finalize();
305 QGLVertexArray ary = list.geometry()->toVertexArray();
306 QGLVertexArray ary = node->geometry()->toVertexArray();
306307 int texx = ary.fields().indexOf(QGL::TextureCoord0);
307308 for (int i = begin; i < end; i += 8)
308309 {
340340 int begin = f * 8 * 6;
341341 QGLDisplayList list;
342342 list.newSection(QGL::Faceted);
343 QGLSceneNode *node = list.currentNode();
343344 list << cfL;
344345 list.finalize();
345 QGLVertexArray ary = list.geometry()->toVertexArray();
346 QGLVertexArray ary = node->geometry()->toVertexArray();
346347 int texx = ary.fields().indexOf(QGL::TextureCoord0);
347348
348349 int i = begin; // starts at bottom right
389389 int begin = f * 8 * 6;
390390 QGLDisplayList list;
391391 list.newSection(QGL::Faceted);
392 QGLSceneNode *node = list.currentNode();
392393 list << cfT;
393394 list.finalize();
394 QGLVertexArray ary = list.geometry()->toVertexArray();
395 QGLVertexArray ary = node->geometry()->toVertexArray();
395396 int texx = ary.fields().indexOf(QGL::TextureCoord0);
396397
397398 int i = begin; // starts at bottom right