Texture functions, that create and manipulate textures should switch the current context if necessary. thanks to: @emersion Fixes #934