Switched to using vertex buffer instead of immediate mode when
drawing.