Odd Rendering

I’ve been having some trouble using OpenGl in Delphi. Can anyone tell me what I might have done wrong.
Screen shot below.

Problem solved! I used polygons instead of GL_QUADS!