switch rendering to opengl