cogl-vertex-buffer: Flush the framebuffer state first
cogl-vertex-buffer: Flush the framebuffer state first

Flushing the framebuffer state can cause some drawing to occur if the
framebuffer has a clip stack which needs the stencil buffer. This was
causing the array pointers set up by enable_state_for_drawing_buffer
to get mangled so it would crash when it hits glDrawArrays. This patch
moves the framebuffer state flush to before it sets up the array
pointers.

http://bugzilla.clutter-project.org/show_bug.cgi?id=2297

gcampax/cogl,djdeath/cogl-android,spatulasnout/cogl,djdeath/cogl,gcampax/cogl,Distrotech/cogl,gcampax/cogl,Distrotech/cogl,spatulasnout/cogl,Distrotech/cogl,djdeath/cogl,collects/cogl,djdeath/cogl-android,djdeath/cogl-android,gcampax/cogl,collects/cogl,djdeath/cogl,Distrotech/cogl