Added indexing to OpenGL 1.1 and cleaned up warnings.