check3d function

Check for an open RGL window.