Remove redundant context changes.
Set the GL window's context. This fixes the crash in the texture window.