fix incorrect glEndList signature