GL_QUADS is deprecated, you probably want to use pairs of triangles instead.
This is one of the biggest mistakes ever made by the ARB. Quads are supported directly by the hardware, and there are good reasons to use them instead of pairs of triangles for various things.