Removed deprecated opengl call