switching to opengl