switch drawing to opengl