[journal] Always pad our vertex data as if at least 2 layers are enabled
[journal] Always pad our vertex data as if at least 2 layers are enabled

The number of material layers enabled when logging a quad in the journal
determines the stride of the corresponding vertex data (since we need a set
of texture coordinates for each layer.) By padding data in the case where we
have only one layer we can avoid a change in stride if we are mixing single
and double layer primitives in a scene (e.g.  relevent for a composite
manager that may use 2 layers for all shaped windows) Avoiding stride
changes means we can minimize calls to gl{Vertex,Color}Pointer when flushing
the journal.

Since we need to update the texcoord pointers when the actual number of
layers changes, this adds another batch_and_call() stage to deal with
glTexCoordPointer and enabling/disabling the client arrays.

tardyp/clutter,collects/clutter,dlespiau/clutter,rkudiyarov/clutter_osx,spatulasnout/clutter,spatulasnout/clutter,ebassi/clutter,heysion/clutter-clone,djdeath/clutter-multithreaded,Distrotech/clutter,collects/clutter,Distrotech/clutter,jigpu/clutter,ebassi/clutter,ebassi/clutter,heysion/clutter-clone,collects/clutter,djdeath/clutter,kerrickstaley/clutter-vala,Distrotech/clutter,tardyp/clutter,heysion/clutter-clone,kerrickstaley/clutter-vala,jigpu/clutter,Distrotech/clutter,GNOME/clutter,rkudiyarov/clutter_osx,kerrickstaley/clutter-vala,jigpu/clutter,rkudiyarov/clutter_osx,GNOME/clutter,djdeath/clutter-android,jigpu/clutter,rkudiyarov/clutter_osx,djdeath/clutter-android,dlespiau/clutter,spatulasnout/clutter,djdeath/clutter,djdeath/clutter-multithreaded,jigpu/clutter,nobled/clutter,tardyp/clutter,Distrotech/clutter,spatulasnout/clutter,heysion/clutter-clone,collects/clutter,djdeath/clutter-multithreaded,heysion/clutter-clone,ebassi/clutter,Distrotech/clutter,nobled/clutter,djdeath/clutter-android,djdeath/clutter-android,djdeath/clutter,nobled/clutter,ebassi/clutter,GNOME/clutter,djdeath/clutter,jigpu/clutter,djdeath/clutter-multithreaded,dlespiau/clutter,spatulasnout/clutter,collects/clutter,kerrickstaley/clutter-vala,djdeath/clutter-android,GNOME/clutter,GNOME/clutter,djdeath/clutter,djdeath/clutter