Ported to OpenGL 1.5