Do not use makecurrent in  window.beginRenderImmediate, but do do it on a refresh/resize