delete ResizeMode and just do openGL calls directly