This test breaks out into raw OpenGL to create a foreign texture so it needs to be careful not to trample on any state that may be cached by Cogl internally.