More constants, less magic numbers!
Sprinkled some OpenGL error checking over the render code.