reset changes made by check_opengl, per function